[Mono-osx] Abort trap on ProcessName

Chuck Esterbrook chuck.esterbrook at gmail.com
Mon Apr 14 04:43:22 EDT 2008


Anyone else having this problem?

class X {
	static public void Main() {
		System.Console.WriteLine(System.Diagnostics.Process.GetCurrentProcess().ProcessName);
	}
}

$ gmcs ProcessName.cs
$ mono ProcessName.exe
Stacktrace:

  at (wrapper managed-to-native)
System.Diagnostics.Process.ProcessName_internal (intptr) <0x00004>
  at (wrapper managed-to-native)
System.Diagnostics.Process.ProcessName_internal (intptr) <0xffffffff>
  at System.Diagnostics.Process.get_ProcessName () <0x00022>
  at (wrapper remoting-invoke-with-check)
System.Diagnostics.Process.get_ProcessName () <0xffffffff>
  at X.Main () <0x00018>
  at (wrapper runtime-invoke) X.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
Abort trap
$ _

I've got a Linux box running 1.2.5.1 and for that it works fine:
$ gmcs ProcessName.cs
$ mono ProcessName.exe
ProcessName
$ _


-Chuck


More information about the Mono-osx mailing list