This is the culprit

Qt Code:
  1. if(m_hinstWAB)
  2. FreeLibrary(m_hinstWAB);
To copy to clipboard, switch view to plain text mode 

I load the library in the following way and therefore I need to free it.

Qt Code:
  1. //This is the variable -->//HINSTANCE m_hinstWAB;
  2. m_hinstWAB = LoadLibrary( (lstrlen(szWABDllPath)) ? szWABDllPath : WAB_DLL_NAME );
To copy to clipboard, switch view to plain text mode 

Any ideas on how I can solve this?

Thanks a lot !