• 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: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In


  • Subject: Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
  • From: Joe Jones <email@hidden>
  • Date: Wed, 5 Mar 2008 19:46:12 -0800
  • Acceptlanguage: en-US
  • Thread-topic: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In

Yeah, did that. Even took the step of not calling close or ever manually releasing the window. It doesn't matter. At the time where my "close" occurs the retain count is 2 so how it is going away I don't know. I never get called on dealloc nor does the window get called on autorelease which I would assume would be happening if it was being put into an AR pool.


On 3/5/08 5:37 PM, "Peter Ammon" <email@hidden> wrote:



On Mar 5, 2008, at 4:52 PM, Joe Jones wrote:

> Hi all,
>
> I have an NPAPI based plug in and I am trying to use a Cocoa window
> to create a full screen window that the plug in can use when it
> wants to take over the screen. All works as expected, The window
> displays and goes away as required and all is joy. Until you quit
> the application.
>

Hi Joe,

Windows by default release themselves when closed, and when an app
quits, every window receives a close message.  This will cause a
crash at application quit if your retains and releases do not account
for that.

Make sure that, if you do not want the window to be released on
application quit, you call [window setReleasedWhenClosed:NO].

-Peter


_______________________________________________

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

References: 
 >Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: Localise between different versions of English
  • Next by Date: Re: Undo and Core Data issue
  • Previous by thread: Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
  • Next by thread: RE: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
  • Index(es):
    • Date
    • Thread