Solved

Exception thrown at 0x00007FFD5BC81F28

Posted on 2016-10-03
7
42 Views
Last Modified: 2016-10-04
I have output from my c++ program as follows:

Exception thrown at 0x00007FFD5BC81F28 in nxrmtray.exe: Microsoft C++ exception: std::exception at memory location 0x000000ED6F2FDEA8.

I just do not know what is wrong, and what can I do with this message. Does anyone knows how to deal with this message?

Thank for your help.
0
Comment
Question by:Evan Li
7 Comments
 
LVL 40

Expert Comment

by:evilrix
ID: 41827279
Well, it means your code is failing to catch and handle a standard C++ exception. The cause of the exception could be many reasons. You need to do a few things...

1. Add exception handlers in your code to catch and report exceptions. You could just wrap all you code in your main function in exception try/catch handlers and send the exception message to std::cerr.

2. Locate the cause of the exception and fix. Your best bet is to run the code in a debugger and set it to break on exceptions.

You don't say what platform you are using, which compiler nor have you shared the code so it's hard to be more specific at this point.
0
 

Author Comment

by:Evan Li
ID: 41827305
I am in windows, I am working on Win32 UI, and I am using Visual studio. Thanks for your help.

Evan
0
 

Author Comment

by:Evan Li
ID: 41827312
How do you setup a break point on exception?
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Author Comment

by:Evan Li
ID: 41827315
I am using Visual c++.
0
 
LVL 32

Expert Comment

by:phoffric
ID: 41827327
What version is your Visual C++?

This article on debugging refers to an older version of Visual Studio 2008 Express.
https://www.experts-exchange.com/articles/2688/C-C-Beginner's-Debugging-Guide-using-Visual-Studio-2008-Express.html
Part 2 continues on with debugging tips. You have to build your program in Debug mode to be able to debug easily.
0
 
LVL 33

Accepted Solution

by:
sarabande earned 500 total points
ID: 41827775
in visual studio open debug menu and navigate to exceptions ... - c++ exceptions - std::exception.

there is a check-box right (titled Thrown) which you should check.

then try to reproduce the exception with the debugger. it now should break excatly at the Statement where the exception was thrown (and before it was thrown). if not checked the Debugger stops after it has found out that there was no exception handler handling the exception.

Sara
1
 

Author Closing Comment

by:Evan Li
ID: 41829176
Thank you Sara
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

786 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