Automatically close Windows program on crash?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
rosuav
Newbie
Newbie
Posts: 2
Joined: Sat Feb 07, 2015 7:47 am

Automatically close Windows program on crash?

Post by rosuav »

I have a program that, under certain circumstances, will crash out with the "Serious Error" popup. In order to better probe the crash with an automated test harness, I'd like to be able to skip that popup and just have the process terminate. Is there a way to do that? Tell Wine "hey, if this program segfaults, just close it without asking me"?

Hoping this is something really easy, but I couldn't find anything on 'man wine' or similar.

Running Wine 1.5.26 on Debian Wheezy, if that makes any difference. I'm hoping for something along the lines of "wine --close-on-crash SomeProgram.exe" or an environment variable, but if the solution is to patch the source and recompile, that's probably doable (though I haven't compiled Wine in over a year).

Thanks in advance!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Automatically close Windows program on crash?

Post by dimesio »

rosuav wrote:Is there a way to do that? Tell Wine "hey, if this program segfaults, just close it without asking me"?
winetricks nocrashdialog
Running Wine 1.5.26 on Debian Wheezy,
That version is over two years old and no longer supported. The current development release is 1.7.36.
rosuav
Newbie
Newbie
Posts: 2
Joined: Sat Feb 07, 2015 7:47 am

Re: Automatically close Windows program on crash?

Post by rosuav »

dimesio wrote:
rosuav wrote:Is there a way to do that? Tell Wine "hey, if this program segfaults, just close it without asking me"?
winetricks nocrashdialog
Ah! Perfect, thank you.
Running Wine 1.5.26 on Debian Wheezy,
That version is over two years old and no longer supported. The current development release is 1.7.36.
Yeah, and I would update except that it was a bit fiddly to get everything working the way I want it to. At some point (probably once Jessie becomes stable), I'll redo this computer with Debian Jessie, and start using a newer version (although that seems to be 1.6.2 rather than 1.7.x).
Locked