EventWaitHandle question

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,
 
B

Ben Voigt [C++ MVP]

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)?
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top