[Mono-list] Problem with mono_string_to_utf8
Steinar Herland
steinar.herland@gecko.no
Fri, 12 Jul 2002 15:04:32 +0200
-- 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