Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2150
XamPropertyGrid is instantly rooted
posted

In the constructor of XamPropertyGrid, it looks like there is a call to add an event handler to a static event (TypeDescriptor.Refreshed).

IE. I can put a breakpoint in the debugger and I see this method call:

System.ComponentModel.TypeDescriptor.add_Refreshed

There is never an equivalent call to release/unsubscribe from that event handler.

The result is that my app has a very rapid leak.  Below is an image of the path to the rooted reference.  I suppose I may have to do manual cleanup to remove the XamPropertyGrid control from my ProductDetailsControl as a workaround.  But even then it will still have a leak of the XamPropertyGrid instances themselves...

Can anyone suggest any easy workarounds?

Rooted

Parents Reply Children
No Data