Yes I create only one object and its deleted once the window is closed.
But I don't need it through out the application. Only when user needs to access the Windows Address Book, I need to load the library. And once user is done, I free it.
ok, will try that. But what will happen if I do not call FreeLibrary(m_hinstWAB); ?
Mithin
www.mithin.in
Nothing, if everything is implemented well. In worst case windows will think that this library is used by a non-existent process. Of course if you will create more than one CWAB object, you'll get a resource leak.
Maybe you should try to reproduce that problem using a sample application? That crash might have more than one cause.
hmm, I am not sure what do you mean by that. I have a windows only code which accesses the windows address book and it works perfectly. I integrated that code with Qt code and it crashes the applicationOriginally Posted by jacek
When I comment those two lines, the app works perfectly (no crashes). But when I uncomment those lines, it crashes in the same place.Originally Posted by jacek
May be I am missing something.
Thanks a lot!
Mithin
www.mithin.in
Bookmarks