Help finding memory leak

Memory profiling for .NET developers

Moderators: StephenC, Alex.Davies, AndrewH, melvyn.harbour

Help finding memory leak

Postby FunMan » Sat Jun 12, 2010 9:59 pm

Hi,

I'm evaluating ANTS Memory Profile trying to solve a memory leak problem of my WPF application.

This application has a main menu and open a sequence of defined windows, depending on the user requested function. When the user session ends, i destroy all the open windows (beginning from last opened).

I noticed, also using ANTS Memory Profile (before I saw abnormal memory allocation), that every new session i have multiple live istance of windows.. so i have a classic memory leak. I tested the destroying routine, and it's ok, I examined also the retention graph produced by ANTS, but i'm not able to understand wich object maintain the windows live.

THIS is the retention graph of a windows during the first session. The windows is RB_InserimentoPNR.

With the second session i have two istance of the RB_InserimentoPNR window, a new one with the same retention graph above, and the old one (the one i closed but GC doesn't destroy) with this retention graph.

As I said I'm not able to determine why the object was not released, the only event handler i see seems to be wpf stuff, not mine.

Can someone help me?

Thanks
FunMan
FunMan
 
Posts: 2
Joined: Fri Jun 11, 2010 9:23 am

Postby FunMan » Mon Jun 14, 2010 8:16 am

Hi,

probably i found a solution... the leak is caused by wpf style and templates...

Thanks
FunMan
FunMan
 
Posts: 2
Joined: Fri Jun 11, 2010 9:23 am

Postby nick.maidment » Mon Jun 14, 2010 9:44 am

Do you still need assistance with this?
nick.maidment
 
Posts: 74
Joined: Fri Jan 29, 2010 1:55 pm


Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests

cron