[Gc] Re: Using the GC from a DLL

Achilleas Margaritis axilmar at otenet.gr
Sun Jan 6 04:31:55 PST 2008


Could you please confirm the following:

1) GC_malloc can be invoked before GC_INIT either from a DLL or from the 
  program.

2) GC_INIT must be invoked from main() and not from the DLL.

Thanks.

O/H Boehm, Hans έγραψε:
> The CVS version forces initialization on a GC_malloc call.  Version 7.0 does not.  Even with the CVS version, some more esoteric calls might cause problems if they are made before initialization.
> 
> Hans
> 
>> -----Original Message-----
>> From: gc-bounces at napali.hpl.hp.com
>> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Achilleas
>> Margaritis
>> Sent: Monday, December 31, 2007 1:47 AM
>> To: gc at napali.hpl.hp.com
>> Subject: [Gc] Using the GC from a DLL
>>
>> How can I use the GC from inside a DLL?
>>
>> What if the DLL does allocations in its initialization code
>> before I am given a chance to call GC_INIT?
>>
>> _______________________________________________
>> Gc mailing list
>> Gc at linux.hpl.hp.com
>> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
>>



More information about the Gc mailing list