Our virtual home

Avoid this.Handle != IntPtr.Zero checks!

Just because requesting the Handle (IntPtr, see remarks section) will create the handle internally in case it is IntPtr.Zero and may cause issues on disposing or closing! How to get around? Just use the this.IsHandleCreated property...

» Similar Posts

  1. How to prevent the configuration file watcher thread in Microsoft Enterprise Library 3.1
  2. Just received: XBox 360
  3. More to know about .NET Timers
There are no comments.

Comments are closed