• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTask interrupt exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTask interrupt exception
      • From: Scott Ribe <email@hidden>
  • Prev by Date: storage for context: value
  • Next by Date: Re: storage for context: value
  • Previous by thread: Re: storage for context: value
  • Next by thread: Re: NSTask interrupt exception
  • Index(es):
    • Date
    • Thread