SIGABRT on readInBackgroundAndNotify
SIGABRT on readInBackgroundAndNotify
- Subject: SIGABRT on readInBackgroundAndNotify
- From: Christian Mike <email@hidden>
- Date: Thu, 20 Sep 2001 13:51:39 -0500
I am trying to use the MiscSerialPort class from the MiscKit
(
http://www.misckit.com). It opens an NSFileHandle on the file descriptor
returned by an open( ) call to the serial port. It then issues a
readInBackgroundAndNotify call to the NSFileHandle. It then sets up to be
notified of the NSFileHandleReadCompletionNotification. So far so good.
I can output data to this port just fine. However, as soon as the first
character comes into that port, the application terminates with a SIGABRT.
The Frame list in the debugger shows it down in the depths of the Core
Foundation run loop. I have tried commenting out the NSNotificationCenter
call, and it still bombs. So that means it is something in
readInBackgroundAndNotify.
This is a multithreaded application. The MiscSerialPort object is allocated
in a worker thread, but I made sure that the readInBackgroundAndNotify and
NSNotificationCenter calls where executed within the context of the Cocoa
GUI thread.
Anybody have any thoughts on this one?
Thanks.
Michael Christian
Thomson multimedia Inc.