[Mono-list] Registering threads with the garbage collector

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


--=-nJIQHh61K72mFhIFKzR3
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
collector?

 -Patrick


--=20
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/


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBA7sKF5DgSg+v4Y5gRAi9uAJ44JPvCgKfTlR5aGHhcE6cTmMW5uACePU8K
wenz5r1K4360jO099KWB5yA=
=Qgok
-----END PGP SIGNATURE-----

--=-nJIQHh61K72mFhIFKzR3--