Solved

Exception thrown at 0x00007FFD5BC81F28

Posted on 2016-10-03
7
38 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

863 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

22 Experts available now in Live!

Get 1:1 Help Now