Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2006-06-16 01:28:11


Roman Neuhauser wrote:
> # ramey_at_[hidden] / 2006-06-15 10:30:49 -0700:
>> The global table might include a handle to the code module which
>> created the entry. This could be used to be sure that the correct
>> entry is deleted as teh DLL is deleted. In windows there is a call
>> to retrieve a handle to the current module - main, DLL etc. I don't
>> know what the corresponding call is on a unix/cygwin/ etc
>> environment. Any one is free to chime in here.
>
> How about just reference counting the types?

Not enough. DLLS can be unloaded in different order than they are loaded.

What is needed is to include a handle of the module doing the registration.
I can find the magic handle in windows - but I don't know how to do it in
UNIX.

Robert Ramey


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net