SV: [Mono-list] Problem with mono_string_to_utf8

Steinar Herland steinar.herland@gecko.no
Fri, 12 Jul 2002 15:32:06 +0200


I'm using this one:
rpm -Uhv
http://mono.baselabs.org/software/mono-0.12_baselabs-20020709.i386.rpm

As far as I can see, it's the newest available on mono.baselabs.org

Is it too old?

/Steinar

-----Opprinnelig melding-----
Fra: Dietmar Maurer [mailto:dietmar@ximian.com] 
Sendt: 12. juli 2002 15:19
Til: Steinar Herland
Kopi: Mono List
Emne: Re: [Mono-list] Problem with mono_string_to_utf8

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