Modeless Dialogboxes
-
Made a cd writing application and when it was creating the ISO I had a modeless dialog box, it was there for about 15 minutes and it crashed :( It doesnt crash when its just there for a few minutes anyone seen this before???
I have apps with modeless dialogs up constanty - the problem is with your code, modeless dialogs do not have a time limit. Have you tried debugging and seeing where it crashes ? Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff.
-
Made a cd writing application and when it was creating the ISO I had a modeless dialog box, it was there for about 15 minutes and it crashed :( It doesnt crash when its just there for a few minutes anyone seen this before???
Modeless dialogs can stay around for as long as it is required provided the program doesn't do any nasty thing to them. I'd say you've got a bug here --try to locate the lines of your code where you issuing a
delete pModelessDlg
(wherepModelessDlg
is the variable you use to hold a pinter to the dialog) and set breakpoints on these lines to determine if they're executed when they shoudn't. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
If it's NULL, then DestroyWindow has been called ( which is the correct way to delete a modeless dialog ). Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff.
-
Modeless dialogs can stay around for as long as it is required provided the program doesn't do any nasty thing to them. I'd say you've got a bug here --try to locate the lines of your code where you issuing a
delete pModelessDlg
(wherepModelessDlg
is the variable you use to hold a pinter to the dialog) and set breakpoints on these lines to determine if they're executed when they shoudn't. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo