ProperyStore

Use this forum to discuss subjects that don't belong in the other forums.

Moderator: SciTech Software

ProperyStore

Postby 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?
sparky2708
 
Posts: 4
Joined: Sat Jan 22, 2011 5:14 am

Re: ProperyStore

Postby 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
Andreas Suurkuusk
 
Posts: 962
Joined: Wed Mar 02, 2005 7:53 pm
Location: Sweden


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests

SciTech Software logo

© Copyright 2001-2016. SciTech Software AB
All rights reserved.


SciTech Software AB
Kartvägen 21
SE-175 46 Järfälla
Sweden


E-mail: mail@scitech.se

Telephone: +46-706868081

cron