• 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
Issue with NSAlert in ARC !!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with NSAlert in ARC !!


  • Subject: Issue with NSAlert in ARC !!
  • From: Naresh Kongara <email@hidden>
  • Date: Tue, 21 Feb 2012 14:04:35 -0800

HI,

I'm working on a Cocoa Desktop application, which we recently migrated from Manual memory to ARC.

Application is sometimes crashing when the alert is closed.

Here is the crash log and stack trace.

*** -[NSPanel release]: message sent to deallocated instance 0x111c74a60


#0  0x00007fff8ffd1da7 in ___forwarding___ ()
#1  0x00007fff8ffd1c88 in __forwarding_prep_0___ ()
#2  0x00007fff8ff49ca0 in CFRelease ()
#3  0x00007fff8ff72180 in -[__NSArrayM dealloc] ()
#4  0x00007fff8791003c in (anonymous namespace)::AutoreleasePoolPage::pop ()
#5  0x00007fff8ff72b05 in _CFAutoreleasePoolPop ()
#6  0x00007fff935e97dc in _dispatch_worker_thread2 ()
#7  0x00007fff8a9b93da in _pthread_wqthread ()
#8  0x00007fff8a9bab85 in start_wqthread ()



I'm creating the alert with class method in NSAlert and running it with runModal.

NSAlert *alert =[NSAlert alertWithMessageText:defaultButton:alternateButton:otherButton:informativeTextWithFormat:];
if ([alert runModal] == NSAlertDefaultReturn) {
//Code
}
This crash is happening only after we migrated to ARC. I tried with analyzer and Zombies, but no success in finding the cause for the crash.

Did any body come across the similar issues (or) any idea on what might be the issue.


Thanks,
Naresh K
_______________________________________________

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


  • Prev by Date: help with usb
  • Next by Date: How can NSView say which keys it actually used?
  • Previous by thread: Re: help with usb
  • Next by thread: How can NSView say which keys it actually used?
  • Index(es):
    • Date
    • Thread