Red Gate forums :: View topic - Help finding memory leak
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

Help finding memory leak

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
FunMan



Joined: 11 Jun 2010
Posts: 2

PostPosted: Sat Jun 12, 2010 9:59 pm    Post subject: Help finding memory leak Reply with quote

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
View user's profile Send private message
FunMan



Joined: 11 Jun 2010
Posts: 2

PostPosted: Mon Jun 14, 2010 8:16 am    Post subject: Reply with quote

Hi,

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

Thanks
FunMan
Back to top
View user's profile Send private message
nick.maidment



Joined: 29 Jan 2010
Posts: 74

PostPosted: Mon Jun 14, 2010 9:44 am    Post subject: Reply with quote

Do you still need assistance with this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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