10-19-04 07:48 AM
> > By default DLLs have their own "data segment" which is
>
> But so do UNIX DSOs.
UNIX DSOs == Dynamic Shared object Library, right ? Those that need
dlopen(), dlsym(). Please correct if I am wrong.
>
> Not if you compiled everything with /MD.
Yep, that's right. I once had a Xerces (XML parser) dll that allocated
memory and I had to free the memory on the main program. It didn't
work till the time I told compiler to make it as a multithreaded dll.
So do we likewise need any switch for a UNIX DSOs so one can release
memory allocated by the DSO ?
Thanks.
[ Post a follow-up to this message ]
|