• 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
C++ static destructors and shared library unloading?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C++ static destructors and shared library unloading?


  • Subject: C++ static destructors and shared library unloading?
  • From: Mark Alldritt <email@hidden>
  • Date: Thu, 18 May 2006 15:59:19 -0700
  • Thread-topic: C++ static destructors and shared library unloading?

Hi Folks,

I'm struggling with a problem where I'm experiencing crashes when my app
exits.  The crashes happen when the C++ run-time invokes a static C++
destructors.  My static C++ objects are created in the main application, but
rely on C++ objects from a loaded framework.  It appears that these
destructors are begin invoked after my framework has been unloaded, and so
they calling missing framework code.

Is there something special I need to do in Xcode to ensure that static C++
destructors are invoked before frameworks are unloaded?

Cheers
-Mark

------------------------------------------------------------------------
Mark Alldritt                      Late Night Software Ltd.
Phone: 250-380-1725                Script Debugger 4.0 - AppleScript IDE
WEB:  http://www.latenightsw.com/  FaceSpan 4.3 - AppleScript RAD
                                   Affrus 1.0 - Perl Debugging


 _______________________________________________
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

  • Follow-Ups:
    • Re: C++ static destructors and shared library unloading?
      • From: Adin Hunter Baber <email@hidden>
  • Prev by Date: Re: .a under version control
  • Next by Date: GDB
  • Previous by thread: Re: .a under version control
  • Next by thread: Re: C++ static destructors and shared library unloading?
  • Index(es):
    • Date
    • Thread