Click to See Complete Forum and Search --> : Unload Client Drivers


July 15th, 1999, 12:48 PM
We have a 2 VB componets that talking to the same Centura SQLBase RDBMS. The SQLBase Client Lib keeps hanging and causing ODBC connection failes in both componet. Is there a way within VB to unload the SQLBase Client Lib? We know which DLL's to kill but can you do it

Thanks for any help
Steve

Lothar Haensler
July 16th, 1999, 02:12 AM
did you try GetModuleHandle and FreeLibrary?
Call GetModuleHandle to get the module handle for the client DLL and call Free Library to unload it.
Well, not really unload it but decrement the usage count. If the usage count is 0 the module will be unloaded by the OS, AFAIK.