[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [Pnet-developers] [bug #16089] Garbage Collector does not call Final
From: |
Heiko.Weiss |
Subject: |
AW: [Pnet-developers] [bug #16089] Garbage Collector does not call Finalizers if using Forms |
Date: |
Tue, 14 Mar 2006 14:48:02 +0100 |
Look at my small sample.
Just do:
new Form2().Show();
So the Form2 is shown, and never had a reference on it.
When Closing the Form gc.should collect.
Problem must be in Xsharp/Widget.cs or?!??
Mit freundlichem Gruß
Heiko Weiss
____________________________________
Heiko Weiss
(TLS561ws, Tel. 248)
-----Ursprüngliche Nachricht-----
Von: Marc Haisenko [mailto:address@hidden
Gesendet: Dienstag, 14. März 2006 14:39
An: Weiss, Heiko
Cc: address@hidden
Betreff: Re: [Pnet-developers] [bug #16089] Garbage Collector does not call
Finalizers if using Forms
On Tuesday 14 March 2006 13:33, address@hidden wrote:
> No!
>
> The problem is, that using a Form, none of our objects are destroyed, such
> as Hashtables, ArrayLists ... Our app is getting bigger and bigger.
>
> If a Form is Closed (Disposed) the inner object should be Finalized at a
> time. Which does not. And should be Finalized even when calling
> GC.Collect().
>
> We here are running out of memory :(
Are you absolutely sure that you're not holding a reference to the form
somewhere ? Because I really doubt that the GC knows anything about Forms, if
you know what I mean.
Just closing a form doesn't mean it should release its inner objects, IIRC
you're able to re-open it, aren't you ? This means you must close the form
and set all references to the form to null so it can be collected.
> Cheers
>
> Heiko
C'ya,
Marc
--
Marc Haisenko
http://darkdust.net
Today is Pungenday, the 73rd day of Chaos in the YOLD 3172