[Mono-list] Registering threads with the garbage collector

Patrick Hartling patrick@vrac.iastate.edu
Fri, 09 Jul 2004 11:06:30 -0500

Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I am mixing managed and unmanaged code using Mono 1.0, and I am having
problems with the garbage collector crashing due to unregistered
threads.  The unmanaged code does spawn threads of its own that call
back into the managed code.  Prior to calling into the managed code,
mono_thread_attach() is invoked as described in the documentation for
embedding Mono.  mono_thread_attach() does not seem to be telling the
garbage collector about the externally spawned thread, however.  Is
there another function (or set of functions) to call in addition to
mono_thread_attach() that will register the thread with the garbage


Patrick L. Hartling                     | Research Assistant, VRAC
http://www.137.org/patrick/             | 2274 Howe Hall Room 2624
PGP: http://tinyurl.com/ywd54           | http://www.vrac.iastate.edu/

Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

Version: GnuPG v1.2.4 (GNU/Linux)