[Mono-list] Problem with mono_string_to_utf8

Dietmar Maurer dietmar@ximian.com
12 Jul 2002 15:19:11 +0200


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