• 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
NSWindow and autorelease with dynamic binary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindow and autorelease with dynamic binary


  • Subject: NSWindow and autorelease with dynamic binary
  • From: "Wesley Smith" <email@hidden>
  • Date: Tue, 15 Jan 2008 02:18:35 -0800

Hi,
I've managed to track my crashing problems with a Cocoa dynamically
loaded binary down to some NSAutoreleasePool stuff.  If I close the
NSWindow by clicking on the red button in the topleft, and _then_
quite the app, no crashing.  If I quite the app with an active window,
I do get crashing after the dynamic binary has been unloaded and the
app is in its final stack unwind.  What happens is:

objc_msgSend     <-------------------------------------- CRASH EXC_BAD_ACCESSS
NSPopAutoReleasePool
+[NSAutoreleasePoop releaseAllPools]

which makes sense if a reference is left over.  My question is how can
I guarantee that all such things have been taken care of?  In my
dynamic binary teardown, I call

[window close];
[window release];

I thought this would be enough but apparently not.
Any ideas?

thanks,
wes
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSWindow and autorelease with dynamic binary
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: Core Data performance advice... creating relationships.
  • Next by Date: Re: Core Data performance advice... creating relationships.
  • Previous by thread: Re: Has their been a Sketch App Update
  • Next by thread: Re: NSWindow and autorelease with dynamic binary
  • Index(es):
    • Date
    • Thread