Catching application crashes - suggestions?

Posted on 2010-01-05
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
    LVL 24

    Accepted Solution

    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

    Check here:
    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

    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


    Author Closing Comment

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


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, ( because one time I did this and I essentially had a bricked …
    Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
    This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now