App Crashing in ARC !!
App Crashing in ARC !!
- Subject: App Crashing in ARC !!
- From: Naresh Kongara <email@hidden>
- Date: Wed, 22 Feb 2012 19:31:10 -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,
Kongara
_______________________________________________
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