If you are using IntPtr as handles in C# code and wish to avoid handle leaks you may use :
IntPtr handle = some handle;
Marshal.Release(handle);
Google search didn't give me correct answer instantly so I added it here :)
cherio!!
Vaibhav
Wednesday, February 18, 2009
How to release IntPtr handle C#
Posted by
vaibhav
at
3:10 PM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment