[Mono-list] Task Parallel Library

Jon Harrop jon at ffconsultancy.com
Sat Feb 7 05:27:16 EST 2009


Microsoft's TPL is a famous example of a real library that makes heavy use of 
queues. I wanted to see if this library was also afflicted by these memory 
leaks in Mono but, unfortunately, Mono 2.2 cannot start the TPL:

$ mono Program.exe

Unhandled Exception: System.TypeInitializationException: An exception was 
thrown by the type initializer for System.Threading.Tasks.TaskManager ---> 
System.EntryPointNotFoundException: GetCurrentProcess
  at (wrapper managed-to-native) 
System.Threading.Internal.NativeMethods:GetCurrentProcess ()
  at System.Threading.Internal.Platform.get_ProcessorCount () [0x00000]
  at System.Threading.Tasks.TaskManagerPolicy..ctor () [0x00000]
  at System.Threading.Tasks.TaskManager..ctor () [0x00000]
  at System.Threading.Tasks.TaskManager..cctor () [0x00000]
  --- End of inner exception stack trace ---
  at System.Threading.Tasks.Future.Create[Int32] (System.Func`1 valueSelector) 
[0x00000]
  at Program.fib (Int32 _arg1) [0x00000]
  at <StartupCode$BreakMono2>.$Program._main () [0x00000]

Has anyone managed to get the TPL running on Mono?

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e


More information about the Mono-list mailing list