Re: (NSThread) crash after pool release
Re: (NSThread) crash after pool release
- Subject: Re: (NSThread) crash after pool release
- From: John Hörnkvist <email@hidden>
- Date: Thu, 22 Aug 2002 13:26:49 +0200
On Thursday, August 22, 2002, at 01:15 PM, email@hidden wrote:
Well I made a workaround by removing the NSString temp. But I do want to know why temp creates a problem...
Am I releasing it in a wrong order?
As far as I can see, you're not supposed to release that reference at all.
You're allocating an NSString for which you just drop the reference when you say temp = [[NSString alloc] init]; and then reassign temp to temp = [string substringWithRange: copyRange];. Get rid of the allocation and the release, and you should be fine.
Regards,
John Hornkvist
_______________________________________________
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.