Click here to Skip to main content
15,911,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I am facing memory leak problem while running the application on windows 7 64 bit system and after certain limit my application gets crashed.
If I run the same application on windows XP, then there is no memory leak. But in windows 7 64 bit or windows 7 32 bit system, the memory raise continuously. I can see this in Task manager.Please suggest.

thanks in advance.
Posted
Comments
Herman<T>.Instance 28-Feb-12 5:07am    
do you know what causes the leak?

In C# you shouldn't have memory leaks, so there are 2 options:

1. You use a component not written with managed code. If you do, that's the first place to look. Do you release all resources to that component? DataAccess components (like OleDb, ADO, ODP, ...) can have this problem eg.

2. You don't have a memory leak 'per se', but you keep assigning and using objects continuously.

I'm surprised the issue is there on Windows 7 and not on Windows Xp. If it was a real memory leak, I would think it occurs on both OS. In this case a lead might be the difference between the two machines: eg. the 'users' folder.

It's hard to tell without knowing what your application does.
 
Share this answer
 
Comments
Shahin Khorshidnia 28-Feb-12 5:38am    
+5 Great
V. 28-Feb-12 5:47am    
thanks :-)
There are quite a few good articles on the code project talking about memory leak detection. Try one of them and see if it gives you any answers. Even if it is not a memory leak as suggested above, you might find a part of your code which consumes the most memory.
 
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