EventWaitHandle question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

VS 2005 help says that EventWaitHandle has Dispose (IDisposable) and
Finalize protected methods. The Dispose method a bool parameter called
explicitDisposing that indicates if it was called by Dipose ou Finalize, but,
Finalize was not implemented. Is this a bug?

TIA,
 
Andre Azevedo said:
Hi all,

VS 2005 help says that EventWaitHandle has Dispose (IDisposable) and
Finalize protected methods. The Dispose method a bool parameter called
explicitDisposing that indicates if it was called by Dipose ou Finalize,
but,
Finalize was not implemented. Is this a bug?

Is Finalize implemented in a base class, to call Dispose(bool disposing)?
 
Ben Voigt said:
Is Finalize implemented in a base class, to call Dispose(bool disposing)?

No, it's not. I'm askling because if you don't call Dispose the Win32 handle
will be not released in Finalize.
 
Back
Top