[Mono-list] Calling two methods from two seperate threads in the same MonoDomain (mono embedding)

Robert Jordan robertj at gmx.net
Mon Jul 21 16:03:11 EDT 2008


Darkas2 wrote:
> Hi!
> 
> Well, as you can read in the title, I'm trying to invoke two methods (Main
> and Frame) in one MonoDomain. I've searched the forums, but I found nothing
> that really matches my problem. I want to call Main in the main thread and
> after Main ends, the program (game engine) quits. And before calling main,
> I'm initializing a timer that invokes the frame method 60 times per second
> (ok, and it does some additional stuff). For threading, I use pthreads. The
> problem is that I get an error message at runtime: The thread ... has been
> prematurely freezed. I googled this, and I found out that this message comes
> from the mono runtime. But I got nothing that can tell me exactly what the
> problem is. Can someone please help me?

You must help us to help you :-)

Did you register the thread that calls "Frame" with mono_thread_attach?

Robert



More information about the Mono-list mailing list