[Mono-dev] Fatal error in gc

Janne Rantala janne.rantala at gmail.com
Wed Jul 12 17:28:33 EDT 2006

2006/7/13, Miguel de Icaza <miguel at ximian.com>:
> Hello,
> > 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.
> Miguel.


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
mono_thread_manage instead...

Which is the right way?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060713/12576e3c/attachment.html 

More information about the Mono-devel-list mailing list