OpenVZ Forum


Home » Mailing lists » Users » Mono CreateThread error
Mono CreateThread error [message #25033] Thu, 13 December 2007 12:21 Go to next message
guen is currently offline  guen
Messages: 4
Registered: November 2007
Junior Member
Hi,

Iam trying to run a C# exe in a VE (Debian Etch) by mono and I get 
following error. If I run the script on another equal Debian system 
without OpenVZ it runs well ... so maybe it's an OpenVZ error? I also 
had some problems to start an apache webserver.  It only runs with 
apache2-mpm-prefork, apache-worker couldn't also start thread ...? Big 
Thanks for help!

#mono MyScript.exe

WARNING **: ves_icall_System_Threading_Thread_Thread_internal: 
CreateThread error 0x0

Unhandled Exception: System.TypeInitializationException: An exception 
was thrown by the type initializer for Toub.Threading.ManagedThreadPool 
---> System.SystemException: Thread creation failed.
  at System.Threading.Thread.Start () [0x00000]
  at Toub.Threading.ManagedThreadPool.Initialize () [0x00000]
  at Toub.Threading.ManagedThreadPool..cctor () [0x00000] --- End of 
inner exception stack trace ---

  at <0x00000> <unknown method>
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()

Best
    guen
Re: Mono CreateThread error [message #25034 is a reply to message #25033] Thu, 13 December 2007 13:22 Go to previous message
guen is currently offline  guen
Messages: 4
Registered: November 2007
Junior Member
.. well, I got it on my own :-)
I configured the VE described on this page

http://wiki.openvz.org/UBC_configuration_examples_table

(thanks for good wiki :-)


guen schrieb:
> Hi,
>
> Iam trying to run a C# exe in a VE (Debian Etch) by mono and I get 
> following error. If I run the script on another equal Debian system 
> without OpenVZ it runs well ... so maybe it's an OpenVZ error? I also 
> had some problems to start an apache webserver.  It only runs with 
> apache2-mpm-prefork, apache-worker couldn't also start thread ...? Big 
> Thanks for help!
>
> #mono MyScript.exe
>
> WARNING **: ves_icall_System_Threading_Thread_Thread_internal: 
> CreateThread error 0x0
>
> Unhandled Exception: System.TypeInitializationException: An exception 
> was thrown by the type initializer for 
> Toub.Threading.ManagedThreadPool ---> System.SystemException: Thread 
> creation failed.
>  at System.Threading.Thread.Start () [0x00000]
>  at Toub.Threading.ManagedThreadPool.Initialize () [0x00000]
>  at Toub.Threading.ManagedThreadPool..cctor () [0x00000] --- End of 
> inner exception stack trace ---
>
>  at <0x00000> <unknown method>
>  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
>
> Best
>    guen
Re: Mono CreateThread error [message #25035 is a reply to message #25033] Thu, 13 December 2007 13:16 Go to previous message
Alex Prinsier is currently offline  Alex Prinsier
Messages: 16
Registered: January 2007
Junior Member
Does cat /proc/user_beancounters report any failures? (run it inside the
VE).

Alexander

guen wrote:
> Hi,
> 
> Iam trying to run a C# exe in a VE (Debian Etch) by mono and I get
> following error. If I run the script on another equal Debian system
> without OpenVZ it runs well ... so maybe it's an OpenVZ error? I also
> had some problems to start an apache webserver.  It only runs with
> apache2-mpm-prefork, apache-worker couldn't also start thread ...? Big
> Thanks for help!
> 
> #mono MyScript.exe
> 
> WARNING **: ves_icall_System_Threading_Thread_Thread_internal:
> CreateThread error 0x0
> 
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for Toub.Threading.ManagedThreadPool
> ---> System.SystemException: Thread creation failed.
>  at System.Threading.Thread.Start () [0x00000]
>  at Toub.Threading.ManagedThreadPool.Initialize () [0x00000]
>  at Toub.Threading.ManagedThreadPool..cctor () [0x00000] --- End of
> inner exception stack trace ---
> 
>  at <0x00000> <unknown method>
>  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
> 
> Best
>    guen
Previous Topic: Question on openvz install on ubuntu
Next Topic: Virtual Ethernet device
Goto Forum:
  


Current Time: Tue Mar 19 07:27:00 GMT 2024

Total time taken to generate the page: 0.02349 seconds