[Mono-list] hello world
Simon Waite
simon@psionics.demon.co.uk
Sun, 21 Jul 2002 00:22:34 +0100
As in the program below :)
hello.cs:
using System;
class Hello {
static void Main() {
Console.WriteLine("Hello world");
}
}
I've installed the following on Debian 2.2 (i386)
pkgconfig-0.12.0
glib-2.0.4
mono-0.12
In that order. It builds hello.exe fine, and runs
under mint and mono interpreters. I copy the file
over to a w2k box and attempt to run the exe and
get the following window:
hello.exe - Application Error
The instruction at "0x200025ff" referenced memory
at "0x200025ff". The memory could not be "read".
Ok- terminate / Cancel - debug.
From what I can glean from the debugger M$ VS .NET
it's claming hello.exe is Native Win32, and the Win32
thread is causing the problem. I know nothing how
CLR .exes bootstrap into running the VM code, but
hello.exe, NTDLL.DLL, mscoree.dll, KERNEL32.DLL,
ADVAPI32.DLL, rpcrt4.dll, tsappsmp.dll, and msvcrt.dll
are all loaded
Call Stack
->200025FF() *[2]
KERNEL32.DLL!77e8d326() *[1]
ASM Code[1]
77E8D318 push eax
77E8D319 push 9
77E8D31B push 0FFFFFFFEh
77E8D31D call dword ptr ds:[77E8134Ch]
77E8D323 call dword ptr [ebp+8]
->77E8D326 jmp 77EB6624
77E8D32B nop
77E8D32C nop
77E8D32D nop
77E8D32E nop
77E8D32F nop
ASM Code[2]
200025FC ?? ???
200025FD ?? ???
200025FE ?? ???
->200025FF ?? ???
20002600 ?? ???
20002601 ?? ???
20002602 ?? ???
I'm not sure if I should raise this as a bug, or
that perhaps I'm being stupid and missing something.
Should linux made CLR exes run under windows?
Apologies if this type of question has been answered
somewhere before, but I suspect many newbies will
wonder why this doesnt work...
Regards,
Simon