Mehyar Posted November 18, 2003 Posted November 18, 2003 Hello to all, I am developing a project for my masters that needs to use virtual memory. Any ideas how can i interact with virtual memory through .NET . I was thinking it may be through API calls but I didnot find anything on the web yet... Any ideas ?? Quote Dream as if you'll live forever, live as if you'll die today
Leaders Squirm Posted November 19, 2003 Leaders Posted November 19, 2003 The OS manages virtual and locked memory so that applications don't need to. It's unusual to use virtual memory manipulation in C++, extremely rare in VB6, and I would think it unheard of to need in .NET since so much is managed for you. If you're set on this, then you'll be using VirtualAlloc, VirtualFree, VirtualLock, VirtualUnlock, VirtualProtect and VirtualQuery. Detailed function information can be found in the help library, and a tutorial on platform invoke can be found here. :) Quote Search the forums | Still IRCing | Be nice
Mehyar Posted November 19, 2003 Author Posted November 19, 2003 Squirm thanks for the reply that is one good article -thx to Derek Stone too :) - I was wondering if Derek would discuss unmanaged memory handling soon !!! One of the advantages I have over my colleagues is that I am using VB.NET while they are using C and JAVA. In java there are switches to tell the operating system to allocate Virtual memory to the program. I dont want to get stuck in VB.NET there... Quote Dream as if you'll live forever, live as if you'll die today
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.