Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

"has stopped working"

$
0
0

Hi.

My app (.exe) that runs on the client's computer crashed as soon as it is executed, showing a message from Windows with the name of my app and " has stopped working" and then it offers (actually requires) to close the program (and afterwards to send a report to Microsoft).

Usually when I have a bug in my code it shows the call stack and if I have the .pdb file with the executable I even get the line number so I can fix it.

How can I debug such a crash and understand what line is causing it? I don't mind replacing temporarily the executable with a debug enabled one. But should I put the Application.Run in try catch block?

The application used to worked but at some point of time it started to show this crash message as soon as application launches (I have some asynchronous  Web Service calls on the main form load, and some calls to the local SQL CE database).

This happens randomly at customers machines but too often.

How can I debug and improve app stability?

thanks.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>