• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode Release vs Debug Differences: Problem with Exception Types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode Release vs Debug Differences: Problem with Exception Types


  • Subject: Re: Xcode Release vs Debug Differences: Problem with Exception Types
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 17 Jun 2008 12:33:39 -0700


On 17 Jun '08, at 12:13 PM, Marshall Clow wrote:

Have you read TN 2185 <http://developer.apple.com/technotes/tn2007/tn2185.html>, especially the bits about "visibility"?

Alternately you can start in the list archives here <http://lists.apple.com/archives/Xcode-users/2006/Jul/msg00400.html> and wander forwards and backwards in time.

Oh, right — I ran into this once, last year. In a nutshell, if a function in one binary (e.g. a framework) throws a custom exception, which is caught by code in another binary; then the global symbols associated with the exception class need to be exported from the framework. Otherwise the caller's C++ runtime can't figure out what the class of exception is, and won't properly invoke the right 'catch' block. (It thinks it's the nearest base class that it knows about, typically std::exception.)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Xcode Release vs Debug Differences: Problem with Exception Types (From: Matthew Tobiasz <email@hidden>)
 >Re: Xcode Release vs Debug Differences: Problem with Exception Types (From: Matthew Tobiasz <email@hidden>)
 >Re: Xcode Release vs Debug Differences: Problem with Exception Types (From: Matthew Tobiasz <email@hidden>)
 >Re: Xcode Release vs Debug Differences: Problem with Exception Types (From: Marshall Clow <email@hidden>)

  • Prev by Date: Re: New documentation update resolves "921" problem
  • Next by Date: Re: What could cause this to fail under MallocScribble?
  • Previous by thread: Re: Xcode Release vs Debug Differences: Problem with Exception Types
  • Next by thread: Re: Xcode Release vs Debug Differences: Problem with Exception Types
  • Index(es):
    • Date
    • Thread