NSTask interrupt exception
NSTask interrupt exception
- Subject: NSTask interrupt exception
- From: Martin Hewitson <email@hidden>
- Date: Thu, 25 Jul 2013 15:24:24 +0100
Dear list,
I have a couple of users reporting exceptions (and crashes) which I think are associated with my interrupting an NSTask when they close a document. I get exceptions like this:
*** -[NSConcreteTask interrupt]: task not launched
In the code I do the following to cancel the NSTask when the document is closed:
if (self.typesetTask != nil) {
if ([self.typesetTask isRunning] == YES) {
[self.typesetTask terminate];
}
self.typesetTask = nil;
}
Is this not the correct way to handle this? I'm wondering why I get (what seems to me to be), a false positive back from -isRunning.
Anyone have any ideas or pointers?
Many thanks,
Martin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
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