Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 ??

Dream as if you'll live forever, live as if you'll die today
  • Leaders
Posted

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.

 

:)

Posted

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...

Dream as if you'll live forever, live as if you'll die today

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...