[Mono-bugs] [Bug 78315][Nor] Changed - [PATCH][WIN32] Crash in 3 line System.Windows.Forms program

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 6 11:49:36 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by robertj at gmx.net.


--- shadow/78315	2006-09-06 09:43:28.000000000 -0400
+++ shadow/78315.tmp.22683	2006-09-06 11:49:36.000000000 -0400
@@ -316,6 +316,14 @@
 leak is one IntPtr and we don't have an alternative solution.
 ------- Additional Comments From joncham at gmail.com  2006-09-06 09:43 -------
 For the record, it leaks one IntPtr per image, but as Peter said alot
 of effort has gone into this bug with no other solution so far. A more
 correct solution would be prefered if anyone can find it.
+------- Additional Comments From robertj at gmx.net  2006-09-06 11:49 -------
+How about this?
+if (!Evironment.HasShutdownStarted)
+        Marshal.FreeHGlobal (comInterface);

More information about the mono-bugs mailing list