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: martin.hewit...@aei.mpg.de
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to