Virtual Memory

Mehyar

Junior Contributor
Joined
Jun 9, 2003
Messages
371
Location
Lebanon
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 ??
 
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.

:)
 
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...
 
Back
Top