Hi all!
I have a DLL with objects, such as fonts and GDI brushes created in the LIBMAIN function, the dll then passes the object handles to the calling application, when the DLL is unloaded the handles are deleted using DeleteObject.
Are all the handles deleted when the DLL unloads? or is it possible that the LIBMAIN function may not be called, if then would all the handles etc. be automatically deleted when the DLL unloads anyway?
The DLL could be used by lots of applications at one time.
I will post some example source when I get back to my DEV pc tommorrow.
TIA
-------------
Kev G Peel
KGP Software
Bridgwater, UK.
mailto:[email protected][email protected]</A>
I have a DLL with objects, such as fonts and GDI brushes created in the LIBMAIN function, the dll then passes the object handles to the calling application, when the DLL is unloaded the handles are deleted using DeleteObject.
Are all the handles deleted when the DLL unloads? or is it possible that the LIBMAIN function may not be called, if then would all the handles etc. be automatically deleted when the DLL unloads anyway?
The DLL could be used by lots of applications at one time.
I will post some example source when I get back to my DEV pc tommorrow.
TIA

-------------
Kev G Peel
KGP Software
Bridgwater, UK.
mailto:[email protected][email protected]</A>
Comment