how to free memory

xxn5

Member
Joined
Oct 23, 2013
Messages
8
Programming Experience
1-3
how to free memory in vb.net when system show low memory.
how to relese memory in vb.net from system memory dump in vb.net .
 
Hi,

If you are asking how to release memory back to your system by closing other programs that are running on a computer then you need to look into Killing existing Processes that are running on a PC. Have a look here of how to get the existing processes on a computer:-

Process.GetProcesses Method (System.Diagnostics)

I will then leave it to you to look into the Process.Kill Method.

If what you are asking is how to stop your own project from consuming and retaining resources then you need to look into Disposing Objects that you may have used once you have finished with them in your project. Have a read of this:-

Disposing Objects
hhmm, I did not really read the above link fully and I now realise that this is more specific to SharePoint but it might give some additional insight. However, have a look at this link:-

http://msdn.microsoft.com/en-us/library/system.idisposable.dispose(v=vs.100).aspx


Hope that helps.

Cheers,

Ian
 
Last edited:
Back
Top