[Mono-bugs] [Bug 78949][Blo] New - ** WARNING **: CreateThread: error creating thread handle

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jul 25 16:46:33 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 babbage at lindenlab.com.


--- shadow/78949	2006-07-25 16:46:33.000000000 -0400
+++ shadow/78949.tmp.17345	2006-07-25 16:46:33.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 78949
+Product: Mono: Runtime
+Version: 1.0
+OS: GNU/Linux [Other]
+OS Details: debian sarge
+Status: NEW   
+Priority: Blocker
+Component: io-layer
+AssignedTo: dick at ximian.com                            
+ReportedBy: babbage at lindenlab.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: ** WARNING **: CreateThread: error creating thread handle
+After creating and unloading hundreds of AppDomains in an application
+embedding Mono-1.1.16, I start getting the following errors on debian sarge
+when I unload a domain:
+(process:27025): ** WARNING **: CreateThread: error creating thread handle
+(process:27025): ** WARNING **: ResumeThread: error looking up thread
+handle (nil)
+These errors seem to be coming from mono_domain_unload which creates a
+thread for unloading.
+The same application on Windows without problem (the windows version has
+been running all day and has unloaded 27,000 AppDomains so far).
+(As I don't call in to secondary domains from any other threads or the
+threadpool, is it safe to call unload_thread_main directly from the main
+thread as a workaround?)

More information about the mono-bugs mailing list