Catching application crashes - suggestions?

Posted on 2010-01-05
Medium Priority
Last Modified: 2013-12-21
I'm looking for suggestions as to how best to catch an application crash on a Windows CE device.  The applications running on this device are all C++/mfc applications.  From time to time, they stop responding, with or without an exception report.

Is it possible to catch an exception at the application level?
Is there an application-crash event another application might detect?

One idea I had was to wire up a custom s/w version of a deadman timer.
Question by:charles_gilley
  • 2
  • 2
LVL 24

Accepted Solution

alexey_gusev earned 2000 total points
ID: 26187838
on Windows Mobile, Microsoft has Error Reporting tool that catches various exceptions and gets a dump etc etc. Windows CE is a different story of course, but maybe you have something similar.

besides, can you attach to the process remotely and debug it in Visual Studio?
LVL 33

Expert Comment

ID: 26187856
Check here: http://www.entrack.com/
They have a trial version.
I just use logging to a file. Or debug the app on the emulator.
Of course, it is great if you can debug  the app on the device, as alexey_gusev said.

Author Comment

ID: 26192763
pgnatyuk - did you mean entrek?  entrack sends me to a IBM EDI site.
I need to clarify my question- I need to catch and recover from these crashes in deployed systems which could be anywhere in the world.  Connecting a debugger is, of course, not possible.
Logging is an option, but this is an embedded system, and logging must be done very carefully such that performance is not adversely impacted.
I guess I'm looking for a way to tie into th last chance exception handler (but CE does not support that call), as an example.
LVL 24

Expert Comment

ID: 26193069

Author Closing Comment

ID: 31673147
Certainly some information to read.  Apologies for not getting back to this sooner.


Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I read that Microsoft has analysed statistics for their security intelligence report. It revealed: still, the clear majority of windows users do their daily work as administrator. An administrative account is a burden, security-wise. My ar…
A few solutions to a problem some of us have been having when trying to add Hostgator email accounts to Outlook 2016 (will probably work with Outlook 2013 as well).
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question