How to find memory leak

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
 
K

Ken Tucker [MVP]

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

Top