Overview
Features
Download
Documentation
Community
Add-Ons & Services

unknown exception [in file "src/ErrorHandler.cpp", line 72]

Please post support and help requests here.
emit
Posts: 2
Joined: 15 Jul 2011, 19:15

unknown exception [in file "src/ErrorHandler.cpp", line 72]

Postby emit » 29 Apr 2013, 16:03

Occasionally, I will get the following in the console

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
unknown exception [in file "src/ErrorHandler.cpp", line 72]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I understand this is caused by an error in my code, but this message is rather useless and unhelpful when debugging.
I would prefer that the program just die as usual so I can drop into gdb and get a proper backtrace. How can I make poco do that? The documentation on ErrorHandler seems to indicate that the default behavior is to drop into the debugger, but in my case, the rest of the program just keeps running, with only the screwed up thread halted.

alex
Posts: 1227
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: unknown exception [in file "src/ErrorHandler.cpp", line

Postby alex » 29 Apr 2013, 16:35

The exception is not a std::exception descendant; if it were, you'd get a better indication - see "Error and Exception Handling" (and references thereof) for a best-practices guide. As for threads and exceptions, see "Thread Error Handling" in Multithreading document.

emit
Posts: 2
Joined: 15 Jul 2011, 19:15

Re: unknown exception [in file "src/ErrorHandler.cpp", line

Postby emit » 30 Apr 2013, 15:46

thank you, I was able to track it down to an exception thrown by a 3rd party library which wasn't deriving their exceptions from std::exception.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 2 guests