[Mono-list] how to get a handle to MonoImage ?? trying t

Varga Zoltan vargaz@freemail.hu
Tue, 10 Feb 2004 22:47:46 +0100 (CET)


   Try calling mono_thread_attach () after calling
mono_jit_init (). That
will fix it. the embedding tutorial needs to be updated to
include this
(or mono_jit_init () needs to call mono_thread_attach ()


> -----Original Message-----
> From: mono-list-admin@lists.ximian.com
> [mailto:mono-list-admin@lists.ximian.com]On Behalf Of ext
Manish Gupta
> Sent: February 10,2004 12:51
> To: Mono-list@lists.ximian.com
> Subject: Re: [Mono-list] how to get a handle to MonoImage
?? trying
> tocall C# codefrom C
> I was able to get it working. However, I faced a strange
problem. I
> created a test DLL with a method foo(). This method was doing 
> some File
> IO. Things worked fine when I invoked this method from C. 
> NOW, I introduced Console.Writeline() statement in the
function foo()
> and the result of invoking foo from C was ...