C + + crash stack Information acquisition

Source: Internet
Author: User

Recently, when doing program exception stack information get related work, the previous article successfully wrote the dump file when the program Creash, and some cases write dump file is

No, for example, in the JNI development, C + + only do the underlying processing, and the entire project is the Android project, this time the dump file has no advantage, then only in the program

Creash when the memory information is printed out, get output to the file.
Here are some of the lessons I get when I do stack information acquisition:


Article 1: How to get the current call stack information in a program under Windows
Article 2: Let the program crash when a decent exit dump file
Article 3: Getting the program to collapse gracefully when exiting the callstack

As can be seen from the name, article 2 is generated dump file, my previous article can also generate dump file, but see the author of this article, it is absolutely

This article is also very detailed written, so special paste this connection, for everyone to learn.

Article 1 and article 3 I have successfully shown the stack information, but the situation is not quite the same, below I say a different place:
My environment: Win7 +vs2013 qt multithreaded Windows program

The article 1:main the active output stack information in the function, the result is successful, the information output at Creash is useless
Useful stack information can be output when the article 3:creash


Although they are all others ' documents, I can achieve some goals through what I describe.

C + + crash stack Information acquisition

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.