We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TabbedMDIManager leaks MDI child forms

Thread ID:

Created:

Updated:

Platform:

Replies:

71604 Feb 7,2008 07:33 AM UTC Jun 9,2008 01:30 PM UTC WinForms 5
loading
Tags: Tools
Ivaylo Fiziev
Asked On February 7, 2008 07:33 AM UTC

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?




Ivaylo Fiziev
Replied On 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.


Ivaylo Fiziev
Replied On 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.


Fathima Shalini P [Syncfusion]
Replied On 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


Justin Kim
Replied On 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




Poly J [Syncfusion]
Replied On 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





CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;