Closing SafeHandle

  • Thread starter Thread starter valentin tihomirov
  • Start date Start date
Hello,

the SafeHandle will eventually disposed by its destructor. But calling the
Dispose method when you no longer need the SafeHandle is a very good idea -
it deterministically releases the unmanged handle and removes the instance
from the finalization queue which tracks all instances with a finalizer.

Kind regards,
Henning Krause
 
Back
Top