How to find memory leak

  • Thread starter Thread starter Tosch
  • Start date Start date
T

Tosch

I have an application that uses to COM objects and does a complex file
conversion between two different systems.
When converting a large amout of files I'm experiencing a memory leak
resulting in my application eating hundreds of MBs of memory and not
releasing it. This again results in a system being very unstable and
my application finally crashing.

What is the best way to figure out which component is eating up the
memory?
I have already tried to shut down COM components and releasing memory,
setting variables to nothing and all that.


Tosch
 
Hi,

Couple of suggestions. First get fxcop to check your code. It will
find alot of errors for you to fix. Second try a memory profiler like ANTS
from red-gate software maybe that will help to find the error.

http://www.gotdotnet.com/team/fxcop/

http://www.red-gate.com/code_profiling.htm

Ken
--------------------
I have an application that uses to COM objects and does a complex file
conversion between two different systems.
When converting a large amout of files I'm experiencing a memory leak
resulting in my application eating hundreds of MBs of memory and not
releasing it. This again results in a system being very unstable and
my application finally crashing.

What is the best way to figure out which component is eating up the
memory?
I have already tried to shut down COM components and releasing memory,
setting variables to nothing and all that.


Tosch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

memory leak using system.windows.forms.timer 14
Help Fixing a Memory Leak 20
Memory leak? 4
Memory Leak 23
Memory leak in WMI 3
Memory Leaks 6
newbie: ArrayList memory leak? 3
Memory leak using UserControl 5

Back
Top