Hai,
Good Morning Frnds please help me out of from this Error system.outofmemoryException prob. how should i solve this prob ?
And also i have low virtual memory prob if i do copy and paste in coding.
Plz don't post links. we all very well knw how to use Google for search. I need solution with some examples.
Thanks In Advance Frnds :)

suren vPosted Jul 21, 2014, 4:20 AM
Jignesh TrivediPosted Jul 21, 2014, 1:24 AM
Hi,
your system internal memory (RAM and Hard drive space) does not play much important roles in the above exception....
but your code may dirty or does not have proper memory management. check following things to avoid memory leakage
Close your connection and Data Reader after you have used it.
Make NULL all dataset after used.
dispose your all object when its go to out of scope.
also refer
http://blogs.msdn.com/b/ericlippert/archive/2009/06/08/out-of-memory-does-not-refer-to-physical-memory.aspx
http://support.microsoft.com/kb/825680
hope this will help you.
Rajagopalan R VPosted Jul 21, 2014, 1:05 AM
This Problem Will Occur Normally Where Your System Memory Gets Low Means it will occur For that You Just Clean The Temp Files and Then Execute Your Code , Like The Method Given Below
Go to start -> run -> %temp% , And Delete Unwanted Temporary Files
With Regards....,
R.V.Rajagopalan
Hope it Helps If You Found the Above Solution Helps Kindly Mark it Has Answer