Win32 application freezes with certain dialog boxes

I wrote a win32 application using opengl. I was able to get save file and open common dialog boxes to work fine. If choose “About” from the menu, the about box freezes my program. Also the print common dialog prints fine, but clicking on “Properties” freezes my program. This is very frustrating.

Dialog boxes don’t return, they lock the program to it. I think you need dialog boxes that are non-Modal (forget if it’s Modal or non-Modal lol).

it’s because of the message pump: it must never stop.
my suggestion is to open the blocking dialogs in separate threads.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.