[Mono-dev] when to call mono_thread_attach

Rodrigo Kumpera kumpera at gmail.com
Fri Apr 15 14:42:36 EDT 2011

On Fri, Apr 15, 2011 at 12:19 PM, Ng, Victor <Victor.Ng at cibc.ca> wrote:

> >> Also, how do I know what objects I have to call mono_free on?  I can't
> >> seem to find a good reference on that topic.
> >This is usually well-documented.
> Where can I find this documentation?  So far, I only now about
> mono_string_new from the embedding webpage.
> I couldn't find any code in the samples directory that invoked mono_free,
> and the header file mono/metadata/object.h doesn't seem to indicate that
> mono_free needs to be called.

Mono exposes a garbage collected runtime, so you don't need to bother
releasing managed objects. The only thing you need to care about is
references to those objects that outlive the stack using ghandles.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110415/222b6eb7/attachment.html 

More information about the Mono-devel-list mailing list