[Mono-list] Dispose method is never called
Tue, 22 Jul 2003 19:44:30 +0200
>-- Original Message --
>From: "Joeri Belis" <firstname.lastname@example.org>
>Subject: Re: [Mono-list] Dispose method is never called
>Date: Tue, 22 Jul 2003 11:54:08 +0200
>It compiled and ran the "MyFinalizer()" example with and without lines (
>13 -> 15 )
>but is get the same output results. Is this what to expect?
>Free unmanaged resources.
Yes, but when I run the example, I don't get the last two
Have you commented out lines 13, 14, and 15?
>> Gonzalo, in mono-threaded applications the destructor
>> (or Finalize method) is called, but in multi-threaded
>> ones it isn't. Please try the attached program. As you
>> will see, the thread method is brutally interrupted and
>> the finalizer is never called.
>> If you comment out line 13, 14, and 15 in finalizer.cs,
>> then it works fine.
>> I hope that helps...
>Mono-list maillist - Monoemail@example.com