Red Gate forums :: View topic - EventHandlerList+ListEntry and PropertyStore
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

EventHandlerList+ListEntry and PropertyStore

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



Joined: 10 Mar 2010
Posts: 1

PostPosted: Wed Mar 10, 2010 8:14 pm    Post subject: EventHandlerList+ListEntry and PropertyStore Reply with quote

We have some memory leaks in our application and I've been tasked with tracking them down using Memory Profiler (what a fantastic piece of software, and you can quote me). The issue is that after using our app for a span of time, our testers get crashes siting an Error Creating Window Handles. We assume we're not properly disposing of our controls and so we've been working with disposing our forms properly. It's not quite there yet, however. Our app has a main form which opens custom controls (which themselves contain many smaller controls- textboxes and the like). The custom controls get closed and opened many times over the course of using the application.

I don't know how big this'll be, but here's a screenshot of a profiler run:


Something I can't seem to get to go away are these EventHandlerList+ListEntry and PropertyStore instances. It seems like these might be keeping our controls in memory (and holding onto their window handles) and causing crashes. Does anyone have experience seeing these in the profiler and if so what was done to dispose of them? I can send more information if necessary. Thanks.
Back to top
View user's profile Send private message
Paul.Martin



Joined: 03 Feb 2010
Posts: 83
Location: Cambridgeshire

PostPosted: Thu Mar 11, 2010 1:52 pm    Post subject: Reply with quote

The two really useful graphs in ANTS when you are searching for this type of problem is the "Clas Reference Explorer" and the "Object Retention Graph".

If you select either the EventHandlerList+ListEntry or the PropertyStore in the "Class List" and then click on "Class Reference Explorer" analysis. This will show you the classes that are referenced or which it is referenced by - so for EventHandlerList+ListEntry you will get the type of EventHandlers that are contained in the EventHandlerLists - this will give you some clues.

If you then select an instance of either the EventHandlerList+ListEntry or the PropertyStore classes in the "Instance List" and then go to the "Object Retention Graph" this will should exactly what is keeping that instance in memory.


There are lots of likely causes and the best way to be sure is to look at the graphs and just gradually work through them.


Glad you are enjoying using our software.
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