[Mono-bugs] [Bug 82810][Nor] Changed - DllImport failures on windows

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 12 16:04:58 EDT 2007

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/82810	2007-09-12 08:29:54.000000000 -0400
+++ shadow/82810.tmp.31553	2007-09-12 16:04:57.000000000 -0400
@@ -61,6 +61,14 @@
 ------- Additional Comments From vargaz at gmail.com  2007-09-12 08:29 -------
 I'm not sure cygwin1.dll is supposed to be used that way. Notice that
 the crash is happening not inside mono, but inside cygwin's system
+------- Additional Comments From robertj at gmx.net  2007-09-12 16:04 -------
+Regardless of this specific issue, p/invoking from cygwin is a bad
+idea, because cygwin is replacing Mono's SEH exception handler with
+its own, which leads to a crash after the first NullReferenceException.
+Try to p/invoke from msvcrt.dll instead.

More information about the mono-bugs mailing list