By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,510 Members | 1,141 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,510 IT Pros & Developers. It's quick & easy.

Releasing the Heap Memory

P: 33
Hi All,

We have ASP.Net based content management web application. We are performing lots of XML based operations like setting the innerxml, loading the xml, string replace operations on XML etc. As per my observation during these operations,memory keep on allocating on heap and never release untill Garbage collector gets called by system. I also set all the objects to nothing after its use, but still it is not releasing the memory. Can anybody provide a solution to release the allocated memory from the heap.

Regards
Amol Lokhande
Sep 17 '09 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
Is there a "Dispose()" method for the Objects that you're using to manipulate the XML?

Dispose will force the Object to release it's resources. If you simply set the Object to null/nothing the resources may still be loaded in memory and you'll run out of resources/memory eventually.
Sep 17 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.