What about those copies? Do you create only one object of CWAB class?

Quote Originally Posted by munna View Post
This is the culprit
if(m_hinstWAB)
FreeLibrary(m_hinstWAB);
It's more a workaround, than a solution, but maybe you should load it before you create QApplication and free it after QApplication::exec() returns? Or maybe you should try to load it using QLibrary?