[Mono-osx] Abort trap on ProcessName

DDignam ddignam at solidworks.com
Mon Oct 27 12:44:06 EDT 2008

I've installed 2.0.1 on OS-X 10.5 and am getting:

daniel-dignams-mac-pro:mono-2.0.1 daniel$ mono

Unhandled Exception: System.ArgumentOutOfRangeException: Index is less than
0 or more than or equal to the list count.

Parameter name: index

   at System.Collections.ArrayList.get_Item (Int32 index) [0x00000]
   at System.Diagnostics.ProcessModuleCollection.get_Item (Int32 index)
   at System.Diagnostics.Process.get_MainModule () [0x00000]
   at (wrapper remoting-invoke-with-check)
System.Diagnostics.Process:get_MainModule ()
   at ConsoleApplication1.Program.Main (System.String[] args) [0x00000] 

The reason would appear to be painfully obvious in proesses.c the whole
process infrastructure is built around procfs which isn't there on the Mac.
I guess this needs to be rewritten using sysctl for the Mac?

View this message in context: http://www.nabble.com/Abort-trap-on-ProcessName-tp16673996p20191487.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list