• 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
SIGBUS with NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIGBUS with NSTask


  • Subject: SIGBUS with NSTask
  • From: Yann Bizeul <email@hidden>
  • Date: Sun, 13 Oct 2002 01:39:00 +0200

Hi there,

Here is my code, quite simple :

myTask = [[ NSTask alloc ] init ];
[ myTask setLaunchPath: @"/bin/sh" ];
[ myTask setArguments: myArguments ];
[ myTask launch ];
[ myTask waitUntilExit ]; // <-- SIBBUS Here

Why should I :
myTask = [[[ NSTask alloc ] init ] retain ]
...
[ myTask release ]
to get the thing work ? And Is it really working, without leak ?

NSTask shouls not be deallocated if I don't ask to, am I wrong ?

Thanks !
--
Yann BIZEUL
LINAGORA
30, rue Saint-Augustin
75002 Paris

Til. 01 58 18 68 35
Std. 01 58 18 68 28
Mob. 06 60 43 00 88
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: SIGBUS with NSTask
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Cocoa Books (was New to Cocoa)
  • Next by Date: dual controllers
  • Previous by thread: DB Front-end design in Cocoa
  • Next by thread: Re: SIGBUS with NSTask
  • Index(es):
    • Date
    • Thread