Use this forum to discuss subjects that don't belong in the other forums.
Post Reply
Posts: 4
Joined: Sat Jan 22, 2011 5:14 am


Post by sparky2708 » Sat Jan 22, 2011 5:22 am

Can someone please explain how PropertyStore works in the context of MDIChild. When I run memprofiler I see my form stuck in propertyStore.objEntries[]. Why does my form have a reference from that array? What happens if I set an MDIParent on a child to some MDIParent and then set child.MDIParent = Nothing. What happens to PropertyStore?

Andreas Suurkuusk
Posts: 1035
Joined: Wed Mar 02, 2005 7:53 pm

Re: ProperyStore

Post by Andreas Suurkuusk » Tue Jan 25, 2011 8:24 pm

The PropertyStore is used to efficiently store seldom assigned properties in instances of System.Windows.Forms.Control. If you set the MdiParent property in an MDI child form, a reference to the parent form will be stored in the PropertyStore. If you set the MdiParent property to null (or Nothing), then the reference will be removed from the PropertyStore.

Unfortunately it is not easy to find out which property an entry in the PropertyStore represents. However, in .NET Memory Profiler 4.0, we will try to identify PropertyStore entries and present them as pseudo-properties, similar to how DependencyProperties are presented in the current preview.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests