In a dialog based application I have two dialogs which I call form CMyApp::InitInstance().
To start an automatic process (like searching files on a hard disk)I post a user message from within CFirstDlg::InitDialog()
When I run the release build .exe I get an Assertion Failure within MFC-code. Though, when building and running the debug .exe it all works fine!
I already know that the problem is the PostMessage cause when I remove it, no assertion failure occures.
I guess a solution could be to build a modeless dialog but are there other solutions which will keep using DoModal?