-- The following code:
using System;
using System.Runtime.InteropServices;
class Win32Methods{
[DllImport("kernel32")]
public extern static IntPtr GetModuleHandleW(string
lpModuleName);
}
class Class1 {
[STAThread]
static void Main(string[] args) {
Console.WriteLine("GetModuleHandle(null): {0}",
Win32Methods.GetModuleHandleW(null));
}
}
-- Gives this output on linux/mono:
** ERROR **: file object.c: line 1114 (mono_string_to_utf8): assertion
failed: (
s != NULL)
aborting...
Avbrutt (SIGABRT)
--
On windows it prints the module handle.
(Note: I have libwine installed on my Mandrake 8.2)
Regards,
Steinar Herland
_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list