App crashes on thread exit
App crashes on thread exit
- Subject: App crashes on thread exit
- From: Fabio Genoese <email@hidden>
- Date: Sat, 12 Oct 2002 16:20:54 +0200
Hey all,
I use a Unix tool in my Cocoa application. Since I wanted the GUI not
to be blocked when calling the tool/handling output/returning output I
put this stuff into a separate thread using
'detachNewThreadSelector:...'. All is fine, I get the correct output,
store it in the datasource of my NSTableView and update the GUI in the
AppKit thread with the NSThreadWillExitNotification. Then (!), on
exititing the thread I get a crash ("...has exited due to signal 5
(SIGTRAP)."). The crash log from Apple System Profiler shows this:
Thread 2 Crashed:
#0 0x90148854 in CFRunLoopWakeUp
#1 0x9083183c in _waitForTermination
#2 0x90021428 in _pthread_body
What does that mean? I can go step by step through all code lines and
the crash occurs either when I release my NSAutoreleasePool or unlock
my NSLock (these are the last two lines of the thread). Any ideas?
Thanks in advance.
Fabio Genoese
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.