Problem with NSOperation exiting and crashing the app
Problem with NSOperation exiting and crashing the app
- Subject: Problem with NSOperation exiting and crashing the app
- From: Laurent Daudelin <email@hidden>
- Date: Fri, 24 Jun 2011 15:27:04 -0700
That used to work but I did some changes and I cannot find the cause of the problem.
Basically, I'm adding an NSOperationInvocation to an NSOperationQueue. Everything executes correctly. However, it seems that when the NSOperation is about to exit and it's emptying its autorelease pool, it crashes while trying to send a message to some object, I'm thinking a release message or something as evidenced by the thread's stack trace:
#0 0x7fff870bff10 in objc_msgSend
#1 0x7fff838b2206 in _CFAutoreleasePoolPop
#2 0x7fff8268fff3 in -[__NSOperationInternal start]
#3 0x7fff8276dc59 in ____NSOQSchedule_block_invoke_2
#4 0x7fff80d95d64 in _dispatch_call_block_and_release
#5 0x7fff80d742d1 in _dispatch_worker_thread2
#6 0x7fff80d73c08 in _pthread_wqthread
#7 0x7fff80d73aa5 in start_wqthread
I've been looking over my allocations to see if any object would be double-released but I can't find anything.
So, is there some way I could get more details from that mistake?
Thanks in advance for any help, pointer or info.
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
_______________________________________________
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