| Author |
Message |
FunMan
Joined: 11 Jun 2010 Posts: 2
|
Posted: Sat Jun 12, 2010 9:59 pm Post subject: Help finding memory leak |
|
|
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 |
|
| Back to top |
|
 |
FunMan
Joined: 11 Jun 2010 Posts: 2
|
Posted: Mon Jun 14, 2010 8:16 am Post subject: |
|
|
Hi,
probably i found a solution... the leak is caused by wpf style and templates...
Thanks
FunMan |
|
| Back to top |
|
 |
nick.maidment
Joined: 29 Jan 2010 Posts: 74
|
Posted: Mon Jun 14, 2010 9:44 am Post subject: |
|
|
| Do you still need assistance with this? |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group