Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Monday, July 24 2017 @ 03:39 PM BST

catch_exception_raise not called ?

   
Cocoa Development FAQWhen implementing my own exception handling code in a Cocoa application using Mach-O low level calls to set my own excpetion handling thread, my catch_exception_raise is never called…
But when I use ligsigsegv as a library, it works !?
Any idea why ?

If the exc_server doesn't find your routine it is most probably because of linker related behaviour…

Be sure to turn on the "Preserve private externals" linker flag in the Linking settings tab of your Xcode project… or pass -keep_private_externs to the linker…
And of course, in case of C++ and Objective-C++, the function must be declared extern "C"
 

What's Related

Story Options

catch_exception_raise not called ? | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2017 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.05 seconds