TabbedMDIManager leaks MDI child forms

Hi,
I noticed a leak of MDI child forms in the TabbedMDI sample in version 4.4.0.51
I am using SciTech .NET Memory Profiler
(http://memprofiler.com/)
to detect this. When closed MDI child forms
are only being disposed. Their instances are not being garbage collected at all!
Can I somehow fix this with 4.4.0.51?




5 Replies

IF Ivaylo Fiziev February 8, 2008 09:35 AM UTC

It appears that the TabbedMDIManager has a DrawIconHelper member that holds references to all MDI child forms. These references are never cleared. Therefore child forms are never collected.



IF Ivaylo Fiziev February 8, 2008 01:45 PM UTC

TabbedMDIManager also has a member called " controlToLayoutOnUnlockTimer". It holds a child form reference either. When I clear these fields via reflection child forms are being collected. However the last closed form still stays in memory.

MainFrameBarManager sometimes keeps references to child forms as well. This causes the same defect.



FS Fathima Shalini P Syncfusion Team February 9, 2008 10:15 AM UTC

Hi Singulus,

Thank you for your interest in Syncfusion Products.

Currently we are analysing and working with this issue. We will update you very soon regarding this.

Please let me know if any concerns.

Regards,
Fathima



JK Justin Kim June 5, 2008 08:05 AM UTC

I have the same problem on the same version of the product (4.402.0.51). My memory profiler shows that m_drawIcons has a reference to a hash table that references my child form. I can find no way of removing this reference.

Please help

>Hi Singulus,

Thank you for your interest in Syncfusion Products.

Currently we are analysing and working with this issue. We will update you very soon regarding this.

Please let me know if any concerns.

Regards,
Fathima





PJ Poly J Syncfusion Team June 9, 2008 01:30 PM UTC

Hi Justin,

The reported issue with TabbedMDI Manager, " The Closed Child Forms are not Garbage Collected " is fixed in 5.2 and higher versions. Please upgrade to Essential Studio latest version for using the fix for this issue.

Regards,
Poly





Loader.
Up arrow icon