16 Jun
2006
16 Jun
'06
5:28 a.m.
Roman Neuhauser wrote:
# ramey@rrsd.com / 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