Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6862675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:41:25+00:00 2026-05-27T02:41:25+00:00

I have a native C++ application that works fine in the office (we do

  • 0

I have a native C++ application that works fine in the office (we do testing, of course), but clients experience numerous different crashes. I know one can windbg (it’s a crossplatform app – Win, Linux and Mac, but crashes occur on all platforms, so debugging either one is useful), but manipulating the client’s machine (installing and registering windbg, for example) isn’t an option. I wonder if there are other ways to get the call stack. Are there any tools that can instrument the binaries to provide such an information?

P. S. I can ship .pdb files along with the binaries, I guess, but I’d prefer not to.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:41:26+00:00Added an answer on May 27, 2026 at 2:41 am

    On Windows you may configure Dr.Watson at client machine, so that if your application crashes it’ll create the so-called “minidump file”, which may then be opened by the debugger with the appropriate PDB.

    You may also add an unhandled exception filter to your application and produce the minidump yourself in case of an irrecoverable error.

    Edit:

    In case you want to produce the dump file upon an (unhandled) exception – don’t do this inside the C++ catch (...) block, because it’s invoked after the unwind took place, and the original call stack is unavailable.

    In order to capture & dump the call stack you should dump it before the stack unwinding. Like this:

    int HandleMyException(EXCEPTION_POINTERS* pExc)
    {
        // dump it
        MiniDumpWrite(...);
    
        // Unless you decide to terminate your process, return EXCEPTION_EXECUTE_HANDLER, so that the execution
        // continues normally after the __except block.
        return EXCEPTION_EXECUTE_HANDLER;
    }
    
    __try
    {
        // Do something...
    }
    __except (/* stack still not unwound */ HandleMyException(GetExceptionInformation()))
    {
        // unwind already took place here, nothing to dump
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that allow users to choose picture from native gallery then
I have a 32-bit .net application that uses a native 32-bit DLL via DllImport().
Background I have an application written in native C++ over the course of several
I have an application that continually crashes with at Suspended (exception ActivityNotFoundException). The full
I have created an application in c language and its executable file works fine
I have some applications (some native, some .NET) which use manifest files so that
I am using Visual Studio, developing a native application, I have a programmatical breakpoint
I have to use a class/assembly made in C# .NET from native C++ application.
I have Java application which sends pointer to function (callback) to some native dll
I have a Java application which interacts with native code using JNI. The native

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.