Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I've 8GB RAM. 500 GB Hard disk. i'm using vs2010. when i run my application its show me out of memory exception.? i don't know why its occur and how to track the exception path or memory leakage path.?
Thanks
Posted
Comments
Fredrik Bornander 19-Feb-13 6:12am    
What is your application doing? Is there any code you could show us?
gilvani 19-Feb-13 6:14am    
with this information i cant help you.
sencsk 19-Feb-13 6:16am    
Its a Huge Business architecture. not a single form. How can a show u the code? I dont know why this exception occur
sjelen 19-Feb-13 12:59pm    
Look at the stack trace of exception - it should point you to the relevant piece of code, where the problem lies.
Are you using recursion? That can cause problems.
Look for memory allocations (using of 'new' keyword), specially with any large objects your app may use and inside large loops.

Restart your application if still problem exists mention some code where you are getting the exception.
 
Share this answer
 
Comments
sencsk 19-Feb-13 6:16am    
Its a Huge Business architecture. not a single form. How can a show u the code? I dont know why this exception occur
Try to debug by inserting breakpoints where you feel your code is going wrong.
You might get some idea.
Usually out of memory exception arises when the system is not able to process what all you have given it to process.
For ex:if one has an app whose capability is 100 rows as an HTML output, and then one gives input such as the result comprises of some thousands of rows.In this case, the system will throw an out of memory exception.

Try to optimize your code, check if you are having queries which yield a large number of rows.

Hope it helps.

Regards
Anurag
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900