Am 18.07.2007 um 19:54 schrieb David Wolinsky:

> That case leaks as well.
>
> Regards,
> David
>
> Miguel de Icaza wrote:
>>>         re = new AutoResetEvent(false);
>>>         re.Close();
>>
>> That depends on the finalizer to run to release memory from the
>> unmanaged side, since AutoResetEvent implements IDisposable you  
>> should
>> use it like this:
>>
>>      using (re = AutoResetEvent (false)) {   
>>              ...

Doesn't Close() call Dispose()? At least for the Stream classes it  
should.

Andreas
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to