Windows 7 application has stopped working message

Hi,

When our application is updating, Windows 7 pops up a box saying "Application [XYZ] has stopped working" this goes away after a few seconds and our updated application restarts. However, as you can imagine, it's off putting for clients. Is there anyway this can be avoided?

CheersSimon

Hey Simon,

We're going to need a whole lot more information to help you track this problem:

  1. What version of wyUpdate.exe (right click the file, click properties, look at the version)
  2. What version of AutomaticUpdater.dll (right click the file, click properties, look at the version)
  3. Are you using custom built versions of AutomaticUpdater or wyUpdate?
  4. Can you reproduce this problem on your own computers?
  5. Did you try attaching a debugger to your app to see why it crashes?

Hi there,

1) wyUpdate version is 2.6.18.42) AutomaticUpdater.dll version is 2.6.18.43) No, straight from the download4) Yes, Windows Home and Windows Professional show the same thing5) It's not that the app crashes, it starts up, wyUpdate kills it to install the update, Windows 7 thinks it's died and puts up the "Stopped working dialog", wyUpdate finishes updating and restarts the app, Windows 7 box goes away, app starts fine.

I think it's Windows 7 thinking the app has stopped working as it starts and then wyUpdate kills it.

5) It's not that the app crashes, it starts up, wyUpdate kills it to install the update, Windows 7 thinks it's died and puts up the "Stopped working dialog", wyUpdate finishes updating and restarts the app, Windows 7 box goes away, app starts fine.

wyUpdate doesn't kill apps. Your app is crashing and you have to attach a debugger to find out why. If I were to guess I'd say you're not handling the AutomaticUpdater.ClosingForInstall property correctly. It's hard to know without debugging it. Attach a debugger and find out exactly where the crash is happening.