• 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
Re: (NSThread) crash after pool release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: (NSThread) crash after pool release (From: email@hidden)

  • Prev by Date: Re: (NSThread) crash after pool release
  • Next by Date: Bundle loading
  • Previous by thread: Re: (NSThread) crash after pool release
  • Next by thread: Re: (NSThread) crash after pool release
  • Index(es):
    • Date
    • Thread