Try settings the parent to the desktop window, this should fix it use GetDesktopWindow(); Ralph Varjabedian Software Engineer
R
Ralph Varjabedian
@Ralph Varjabedian
Posts
-
MFC dialog problem -
Debugbuild OK! Release build CRASHES! WHY?Pay Good attention to code that is written in ASSERT statments (or any code/macro that is excuted in debug builds only). This code is only called in Debug Versions. For example if you have something like this CWnd *pWnd = NULL; ASSERT(pWnd = GetDlgItem(ID_ANYTHING)); pWnd->ShowWindow(SW_HIDE); This code will crash under release but will work under debug ;) Change the ASSERT into VERIFY. Ralph Varjabedian Software Engineer