>-- Original Message --
>From: "Giuseppe Greco" <[EMAIL PROTECTED]>
>Subject: Re: [Mono-list] Dispose method is never called
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Date: Tue, 8 Jul 2003 06:25:33 +0200
>
>
>>> Well, in the class above, the Dispose() method is never
>>> called. This is a problem if one needs to wait until the
>>> thread has finished its work -- Thread.Join() should block
>>> until then.
>>>
>>> The destructor -- ~MyClass() -- is never called.
>
>> Is it called under windows? I think it's not because MyThreadMethod is
>> accessing isDisposed field, which belongs to the class instance.
>> That's
>> why it's never disposed.
>
>I've also tried an empty thread function like this
>
>private void MyThreadMethod()
>{
> while (true) {
> Thread.Sleep(100);
> {
>}
>
>... but the class is still never disposed.
>
>Gius_.
Some additional information
>
>> -Gonzalo
>
>
>_______________________________________________
>Mono-list maillist - [EMAIL PROTECTED]
>http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list