[Mono-list] What does the C method mono_gc_collect do?

petermonsson petermonsson at yahoo.dk
Tue Sep 14 05:52:26 EDT 2010


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.


More information about the Mono-list mailing list