[Mono-bugs] [Bug 77075][Maj] Changed - "SuspendThread failed!" on windows

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 9 12:31:08 EST 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/77075	2007-01-09 11:25:55.000000000 -0500
+++ shadow/77075.tmp.14095	2007-01-09 12:31:08.000000000 -0500
@@ -183,6 +183,18 @@
 automatically when a native->managed transition happens.
 Avoiding the dll trick sounds good if it fixes issues: the only
 problem I see is that on windows threads are not automatically
 detached when they die (on pthread we can do that with a tls slot
 destructor callback): this could be considered a minor issue.
+------- Additional Comments From robertj at gmx.net  2007-01-09 12:31 -------
+Paolo, ok. Somewhere on the wiki or in the embedding docs there is a
+doc stating that pthread users are encouraged to include gc.h (I don't
+recall the exact words) to get the auto-attach/detach benefits.
+Maybe this was related to the yet unsupported external libgc feature.
+About the missing detach feature: when we get a system where
+this bug is reproducible, I'll provide another patch (and a mono.dll)
+that handles the Win32 DllMain's DLL_DETACH event, because I guess
+that this bug is only about DLL_ATTACH.

More information about the mono-bugs mailing list