Article View: borland.public.delphi.winforms.controls.using
Article #204Re: Component.Dispose(bool) problem
From: Peter Morris [Droopy eyes softwa...
Date: Wed, 05 Jul 2006 18:25
Date: Wed, 05 Jul 2006 18:25
17 lines
1555 bytes
1555 bytes
Aha! If this is on the main form it gets called. On child forms it doesn't unless you explicitly call Dispose when the form closes. I suspect then that the problem lies in the Form class not calling Dispose when it is closed. Probably because dotnet doesn't know if there are still references being held to it. Even calling GC.Collect() doesn't do the trick, the form isn't collected until my app closes. I think maybe ECO auto forms need to call Dispose on the form when it is closed. Thanks! Pete
Technical Details
Message-ID:
<44ac0413@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44ab6a34$1@newsgroups.borland.com> <il0na258mjappn07usvin5sphleob7ege9@4ax.com> <44abb93f$1@newsgroups.borland.com> <pfjna25aa6vbrm6g4t2400jfp7a63296a2@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,4d562b5bfdb92132 X-Google-Attributes: gid1eff29,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Peter Morris [Droopy eyes software]" <pete@NO_droopyeyes_SPAM.com> Newsgroups: borland.public.delphi.winforms.controls.using References: <44ab6a34$1@newsgroups.borland.com> <il0na258mjappn07usvin5sphleob7ege9@4ax.com> <44abb93f$1@newsgroups.borland.com> <pfjna25aa6vbrm6g4t2400jfp7a63296a2@4ax.com> Subject: Re: Component.Dispose(bool) problem Date: Wed, 5 Jul 2006 19:25:18 +0100 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 82.46.138.4 Message-ID: <44ac0413@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1152123923 82.46.138.4 (5 Jul 2006 11:25:23 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail