PDA

View Full Version : Modal dialog detection


kodakdave
10-25-2010, 03:38 PM
VBP: I wonder if there is a way to detect when a modal dialog occurs (due to a crash, for example....asking if I want to debug).

I have put timeouts on the steps where this is likely to happen (running nunit-console, etc.) but a modal dialog guarantees a timeout. At that point I need to know if the step merely ran out of time (tests took longer than I allowed), or whether some part of it crashed and sat around waiting for user interaction that never came.

Thanks.

kinook
10-25-2010, 03:53 PM
You might look into options for preventing the crash dialog. For instance:
http://stackoverflow.com/questions/396369/how-do-i-disable-the-debug-close-application-dialog-on-windows-vista