[Gc] Multiple modules and gc

Ben Hutchings ben.hutchings at businesswebsoftware.com
Fri Dec 3 07:05:20 PST 2004


Bojan Šernek wrote:
> Hello,
> 
>     I intend to use libgc 6.3 in my current work, but need to clear up some
> things first.
> If there are multiple objects compiled with the gc, which exchange memory
> a lot (a library and an application) how would one devise such a system so
> that:
> 
> * even if the library is unloaded referenced objects by the application stay
> live
> * there is only one copy of the garbage collector running (if possible)
 >
>     I'm running under windows.

I think all you need to do is to build the GC as a DLL.

Ben.




More information about the Gc mailing list