>-- Original Message --
>Subject: Re: [Mono-list] Dispose method is never called
>From: Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Date: 11 Jul 2003 22:22:01 +0200
>
>
>El vie, 11-07-2003 a las 12:19, Giuseppe Greco escribi�:
>> > > 
>> > > Mono doesn't execute the Finalizer at all. I've posted this problem
>> > > to bugzilla.ximian.com. Look at bug #45962 and get the source code
>> > > I've used to reproduce the problem (source code is attached as a tarball).
>> > > 
>> > > Try to execute that small program either with .NET on Windows or with
>> > > Mono on Linux, and you'll see the differences...
>> > 
>> > Fixed in CVS.
>> 
>> Gonzalo, I've checked out the latest version of Mono
>> from CVS right now, but the problem is still there...
>
>Well, it works for me (tm) :-).
>
>However, it seems that the patch i applied causes some other troubles.
>If I cannot fix them soon, i'll reopen the bug and add more info on
>this.

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...

Gius_.

>
>-Gonzalo
>
>
>_______________________________________________
>Mono-list maillist  -  [EMAIL PROTECTED]
>http://lists.ximian.com/mailman/listinfo/mono-list

Attachment: finalizer.tar.gz
Description: GNU Zip compressed data

Reply via email to