[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: |
Norbert Bollow |
Subject: |
Re: [Pnet-developers] Destructors are not being called - bug or usage error? |
Date: |
Sun, 16 May 2004 22:21:00 +0200 |
Would it be possible for our engine to guarantee that all finalizers
are called prior to exit?
How hard would that be to implement?
Greetings,
Norbert.
David Logan <address@hidden> wrote:
> OK, technically I can respect that. But in oop-speak, I thought the idea
> was that code and data were self contained. That statement would mean
> that a class is responsible for its *own* cleanup. But now, by not
> requiring destructor calls, the requirement that a class execut its
> "shutdown code" or "cleanup code" has now been moved to the calling
> class, hasn't it?
>
> David Logan
>
> Rhys Weatherley wrote:
>> 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.
- [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, 2004/05/14
- 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 <=
- 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