[Mono-list] What does the C method mono_gc_collect do?
Rodrigo Kumpera
kumpera at gmail.com
Tue Sep 14 17:12:23 EDT 2010
It does init a gc.
>From the mono-gc.h header: void mono_gc_collect (int generation);
On Tue, Sep 14, 2010 at 6:52 AM, petermonsson <petermonsson at yahoo.dk> wrote:
>
> Hi all,
>
> I'm trying to figure out what I'm doing wrong when using a C# Assembly from
> C. I suspect I'm screwing up some gchandle stuff since the documentation on
> gchandle isn't very clear. So I want to make the gchandle stuff work with a
> small program, but small programs don't always execute long enough to make
> the garbage collector kick in, thus I would like to invoke the garbage
> collector manually.
>
> They question is: Does mono_gc_collect actually invoke the garbage
> collector, and what is the function prototype?
>
> The documentation isn't of much help:
>
> http://go-mono.com/docs/monodoc.ashx?tlink=33@xhtml%3adeploy%2fmono-api-gc.html
>
> Thanks in advance
> Peter
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/What-does-the-C-method-mono-gc-collect-do-tp2538722p2538722.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> 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/20100914/5f8d3546/attachment.html
More information about the Mono-list
mailing list