SIGBUS with NSTask
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.