The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   Omni Frameworks (http://forums.omnigroup.com/forumdisplay.php?f=16)
-   -   Exception handling (http://forums.omnigroup.com/showthread.php?t=13413)

Joe Alexander 2009-08-15 09:31 PM

Exception handling
 
Hi, I'm just starting to put together an application that uses the Omni frameworks, and when I get an exception, if I have the OFCrashOnAssertionOrUnhandledException turned on, it crashes after printing a description without a backtrace to the console. If I turn it off, I get and endless stack of [OAApplication reportException:] calls.

First question: what might be causing the loop of reportException calls, and how would I fix that?

Second question: how would I put a UI on this so that the program displays a dialog and allows the user to email the exception report to me?

Third question: what would cause it not to have a stacktrace?

The actual exception in this case is:

Crashing with report:
Exception raised:
---------------------------
Mask: 0x00000001
Name: NSInvalidArgumentException
Reason: *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil key
Info:
(null)
Backtrace:No numeric backtrace found
---------------------------

The application has one of our frameworks in it, the omni base/foundation/appkit/inspector frameworks, and is a coredata document based app.

Thanks for your help, and for releasing these excellent frameworks.

Joe


All times are GMT -8. The time now is 03:31 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.