Re: about NSThread crash

2009-06-24 Thread Ken Thomases
On Jun 24, 2009, at 1:49 AM, Chris(吴潮江) wrote: On Jun 24, 2009, at 2:28 AM, Ken Thomases wrote: You probably don't need to use a background thread to do FTP. You can do it using asynchronous methods on the main thread. Since you can, you probably should. It's almost always less error

Re: about NSThread crash

2009-06-23 Thread Chris(吴潮江)
On Jun 24, 2009, at 2:28 AM, Ken Thomases wrote: You probably don't need to use a background thread to do FTP. You can do it using asynchronous methods on the main thread. Since you can, you probably should. It's almost always less error prone and even more efficient. Considering t

Re: about NSThread crash

2009-06-23 Thread Ken Thomases
On Jun 24, 2009, at 1:12 AM, Chris(吴潮江) wrote: I have some problems when to using thread. As we all know, there is a method to create a thread, + (void)detachNewThreadSelector:(SEL)aSelector toTarget:(id)aTarget withObject:(id)anArgument. - (void)aSelector:(id)anArgument { NSAutoreleasePo

about NSThread crash

2009-06-23 Thread Chris(吴潮江)
Hi, I have some problems when to using thread. As we all know, there is a method to create a thread, + (void)detachNewThreadSelector:(SEL)aSelector toTarget:(id)aTarget withObject:(id)anArgument. - (void)aSelector:(id)anArgument { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];