[Mono-dev] Fatal error in gc
janne.rantala at gmail.com
Wed Jul 12 17:28:33 EDT 2006
2006/7/13, Miguel de Icaza <miguel at ximian.com>:
> > I'm trying to run web service client from embedded environment but I
> > keep getting this "Fatal error in gc, collecting from unknown thread."
> > error when web service is invoked. I've tried with few different web
> > service assemblies but they all give me the same message. Does anyone
> > know what causes that or have clues how to get rid of it?
> You need to register all threads with the runtime and the GC, or they
> wont be able to function properly.
What is the proper procedure to register threads? I've done
mono_thread_attach(monodomain) but is it enough?
Mono web page also mentions that function mono_runtime_exec_managed_code
must be used, but that function's comments state that I should use
Which is the right way?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list