Hi there,
[tes...@freebox ~/test]$ uname -a FreeBSD freebox.codicesoftware.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 16:02:27 UTC 2010 [email protected]:/usr/obj/usr/src/sys/GENERIC i386 [tes...@freebox ~/test]$ ../mono/bin/mono --version Mono JIT compiler version 2.6.1 (tarball Wed Feb 10 00:44:40 CET 2010) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com TLS: normal GC: Included Boehm (with typed GC and Parallel Mark) SIGSEGV: normal Notification: Thread + polling Architecture: x86 Disabled: none [tes...@freebox ~/test]$ cat main.cs using System; using System.Diagnostics; namespace getmainmodule { class Program { static void Main(string[] args) { Console.WriteLine(Process.GetCurrentProcess().MainModule.FileName); } } } [tes...@freebox ~/test]$ ../mono/bin/mono main.exe Unhandled Exception: System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count. Parameter name: index 0 at System.Collections.ArrayList.ThrowNewArgumentOutOfRangeException (System.String name, System.Object actual, System.String message) [0x00000] in <filename unknown>:0 at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] in <filename unknown>:0 at System.Diagnostics.ProcessModuleCollection.get_Item (Int32 index) [0x00000] in <filename unknown>:0 at System.Diagnostics.Process.get_MainModule () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:get_MainModule () at getmainmodule.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 pablo _______________________________________________ Mono-devel-list mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-devel-list
