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

Fede federico.omoto at gmail.com
Fri Nov 5 08:01:21 EDT 2010


Thank you Robert!


Best regards,

Federico Omoto



On Fri, Nov 5, 2010 at 6:50 AM, Robert Jordan <robertj at gmx.net> wrote:

> 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
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20101105/defaa94c/attachment.html 


More information about the Mono-list mailing list