[SOLVED] Re: waitForDataInBackgroundAndNotify blocking
[SOLVED] Re: waitForDataInBackgroundAndNotify blocking
- Subject: [SOLVED] Re: waitForDataInBackgroundAndNotify blocking
- From: Yann Bizeul <email@hidden>
- Date: Thu, 13 Jan 2005 16:25:40 +0100
Clues :
Can this be related to thread safety of NSFileHandle ? I don't know
if there is some points to take care when using them in threads.
Can this be related to the fact I keep open a NSFileHandle to read
the output, but using a new one to write on it each time ?
Do I need to do something special on the NSFileHandle at the end of
the first try ? I just un-register for the notification (since there
will be no longer an object to receive them)
I was right about the first idea. Not that NSFilehandle is not thread
safe, but the communication was broken because the thread opening my
NSFileHandle did end after execution, which is normal, but I could not
keep my modem open this way.
What I did is just call a method in the main thread before spawning the
job thread. In the main thread, I just open a NSFileHandle if it does
not exist.
Thanks for your non-Help :-)
--
Yann Bizeul - yann at tynsoe.org
Please use this e-mail when writing to me.
You can visit my projects at this address :
http://projects.tynsoe.org/
(BuddyPop - GeekTool - SSH Tunnel Manager...)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden