[Mono-list] Mono embedding: mono_gc_register_thread() question

Robert Jordan robertj at gmx.net
Fri Nov 5 05:50:04 EDT 2010


On 05.11.2010 08:03, Fede wrote:
> Hi!
>
> I'm embedding Mono 2.8 in one of my Windows applications and noted that this
> document "http://www.mono-project.com/Compacting_GC" says that one must call
> mono_gc_register_thread().
> Now, the question is: what kind of parameter does this function expect? Is
> it GetCurrentThread() or is it GetCurrentThreadId()?

This is most likely a bug in the documentation because 
mono_gc_register_thread () is an internal function.

You should be calling mono_thread_attach(MonoDomain*)
from the corresponding thread.

Robert



More information about the Mono-list mailing list