Red Gate forums :: View topic - Object is disposable but Dispose() has not been called yet.
Return to www.red-gate.com RSS Feed Available

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

Object is disposable but Dispose() has not been called yet.

Search in ANTS Memory Profiler 8 forum
Post new topic   Reply to topic
Jump to:  
Author Message
phaeze



Joined: 13 Jun 2014
Posts: 2

PostPosted: Fri Jun 13, 2014 6:52 pm    Post subject: Object is disposable but Dispose() has not been called yet. Reply with quote

Hi,

I am in the midst of debugging a memory leak in a WPF app, I have found the object that is being held in memory but am having a hard time understanding the graph to find the cause.

Looking at the instance retention graph there are several objects that have the green coloring, which on mouse over says "Object is disposable but Dispose() has not been called yet." This is strange as I have debugged through the code and I know dispose is being called on these objects.

Is there some explanation as to why ANTS would believe otherwise?

Thanks,
Phaeze
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 235

PostPosted: Mon Jun 16, 2014 7:15 pm    Post subject: Reply with quote

Hi there,

Thanks for your post!

There aren't any issues with the disposed object tracking that I'm aware of--would you be able to share your application with us so we can reproduce this in-house?
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
phaeze



Joined: 13 Jun 2014
Posts: 2

PostPosted: Mon Jun 16, 2014 8:04 pm    Post subject: Reply with quote

Unfortunately I cannot share the application as it is proprietary, and at this point we have found a simpler display of the issue via visual studio's minidump debugging. Though we have not yet found the issue.

Thanks for your reply.

Regards,
Phaeze
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 235

PostPosted: Mon Jun 16, 2014 9:04 pm    Post subject: Reply with quote

Ah okay, I understand if the application can't be shared. Just to confirm--is Visual Studio also reporting the objects as not disposed then?
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
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