CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Unload Client Drivers

    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


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Unload Client Drivers

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured