Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a windows console app that hosts a WCF service and also transcodes video using DirectShow. I use a great little app called Restart on Crash which reliably detects when a process has exited and automatically restarts it. The trouble is that, many times, a dialog box of one sort or another pops up and prevents the program from closing after a crash until I manually click away the dialog box. Is there a way to prevent a windows console app from showing dialogs on crash?

share|improve this question
    
Not crashing in the first place would be a good start. If that is no option, what dialog exactly is preventing your application from closing (screenshot)? –  Oliver Salzburg Mar 25 '12 at 15:53
    
The trouble is, that there have been several. Since the app uses WCF,Directshow and COM there is more than one way it can go down. I've not yet cataloged the error messages. For now, I grabbed a little app that closes dialogs automatically. Next time I see a crash, I'll add the dialog to its list of watched items. –  PixelRouter Mar 25 '12 at 17:09
    
@OliverSalzburg: Exactly does not matter. Any standard system dialog for uncaught structural exception. –  Jan Hudec Nov 26 '13 at 7:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.