Link to home
Start Free TrialLog in
Avatar of Evan Li
Evan LiFlag for United States of America

asked on

Exception thrown at 0x00007FFD5BC81F28

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.
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of Evan Li

ASKER

I am in windows, I am working on Win32 UI, and I am using Visual studio. Thanks for your help.

Evan
Avatar of Evan Li

ASKER

How do you setup a break point on exception?
Avatar of Evan Li

ASKER

I am using Visual c++.
Avatar of phoffric
phoffric

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.
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Evan Li

ASKER

Thank you Sara