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

  • SEARCH
  • Home
  • 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 6104247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:49:13+00:00 2026-05-23T13:49:13+00:00

i have a project in C++/MFC when i run its in debug mode and

  • 0

i have a project in C++/MFC

when i run its in debug mode and project crashed
i can get function and line number of code
with SetUnhandledExceptionFilter function
but in release mode i can not get it

i am test this function and source

_set_invalid_parameter_handler msdn.microsoft.com/en-us/library/a9yf33zb(v=vs.80).aspx

StackWalker http://www.codeproject.com/KB/threads/StackWalker.aspx

MiniDumpReader & crashrpt http://code.google.com/p/crashrpt/

StackTracer http://www.codeproject.com/KB/exception/StackTracer.aspx

any way to get function and line of code when project crashed in release mode
without require pdb file or map file or source file ?

  • 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-23T13:49:13+00:00Added an answer on May 23, 2026 at 1:49 pm

    PDB files are meant to provide you this information; the flaw is that don’t you want a PDB file. I can understand not wanting to release the PDB to end users, but in that case why would you want them to see stack trace information? To me your goal is conflicting with itself.

    The best solution for gathering debug info from end users is via a minidump, not by piecing together a stack trace on the client.

    So, you have a few options:

    1. Work with minidumps (ideal, and quite common)
    2. Release the PDBs (which won’t contain much more info than you’re already trying to deduce)
    3. Use inline trace information in your app such as __LINE__, __FILE__, and __FUNCTION__.
    4. Just capture the crash address if you can’t piece together a meaningful stack trace.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a large Visual Studio 2005 C++/Mfc solution, 1 project with around 1300
I have C++ project (VS2005) which includes header file with version number in #define
I have the following code, m_edit is a MFC CEdit (I know I would
I currently have my project running two separate threads (one for MFC operations, like
I have a simple mfc project built on a CDialog. I also have a
I have a Visual Studio 2010 project done on MFC. I receive these errors:
We have a smallish C++ Linux project that accompanies our large C++/MFC Windows project.
In my MFC project, I want to generate the labels dynamically. Eg: I have
Using Visual Studio 2010 C++. I have a project which uses MFC and I
I have inherited an old C++ (MFC) project and will have to add new

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.