[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Pnet-developers] Destructors are not being called - bug or usage er
From: |
Thong (Tum) Nguyen |
Subject: |
RE: [Pnet-developers] Destructors are not being called - bug or usage error? |
Date: |
Sat, 15 May 2004 16:02:35 +1200 |
I tried the test case and it doesn't work with mono (win32).
The fix for PNET has been committed so PNET should properly finalize objects
created in/near main. Finalization on exit still needs to be tidied up --
I'm going to overhaul that area of the code when I get around to working on
AppDomains.
Regards,
^Tum
> -----Original Message-----
> From: Rhys Weatherley [mailto:address@hidden
> Sent: Saturday, 15 May 2004 10:15 a.m.
> To: David Logan; address@hidden
> Subject: Re: [Pnet-developers] Destructors are not being called - bug or
> usage error?
>
> On Friday 14 May 2004 11:56 pm, David Logan wrote:
>
> > At program termination, neither Form1.Dispose(bool) nor ~GlobalSettings
> > is getting called. I was counting on it to make sure that GlobalSettings
> > was written to a file. I suppose I will try instead to move the settings
> > save to a Closing() event in Form1.
>
> The Form.Closed event is where cleanup operations like this will normally
> be
> placed. You can also trap Application.ApplicationExit, or put the code
> just
> after your main call to "Application.Run".
>
> While the engine should make the best effort to call all finalizers prior
> to
> exit, the standard makes no guarantee. If you need something to happen on
> exit, then you must arrange for it to be called explicitly.
>
> Cheers,
>
> Rhys.
>
> _______________________________________________
> Pnet-developers mailing list
> address@hidden
> http://dotgnu.org/mailman/listinfo/pnet-developers
- [Pnet-developers] Destructors are not being called - bug or usage error?, David Logan, 2004/05/14
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Gopal V, 2004/05/14
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Gopal V, 2004/05/14
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Rhys Weatherley, 2004/05/14
- RE: [Pnet-developers] Destructors are not being called - bug or usage error?,
Thong (Tum) Nguyen <=
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, David Logan, 2004/05/15
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Norbert Bollow, 2004/05/16
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Rhys Weatherley, 2004/05/16
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Norbert Bollow, 2004/05/17
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Carl-Adam Brengesjo, 2004/05/16
- RE: [Pnet-developers] Destructors are not being called - bug or usage error?, Thong (Tum) Nguyen, 2004/05/16