On Fri, 2002-07-12 at 15:04, Steinar Herland wrote:
> -- 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)
> 

This looks like you have an old version of mono. Please update the
runtime and try again.

- Dietmar


_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to