• 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: Thread memory leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread memory leak


  • Subject: Re: Thread memory leak
  • From: Dave Camp <email@hidden>
  • Date: Fri, 6 Jun 2003 10:15:07 -0700

I think you need to release and create a new NSAutoreleasePool every so often to purge any objects that are waiting to be released.

Dave

On Friday, June 6, 2003, at 09:43 AM, Chuck Rice wrote:

I have a thread defined that runs async to the rest or my program to keep a USB attached LDC display updated with current status information. Works great, except for this huge memory leak! :( The memory leak goes away if I comment out this line in the code:

[NSThread sleepUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.001]];

With this line active I get a 10 to 20 Meg memory leak every minute. I am still an obj-C newbie, so forgive me if it is obvious. -Chuck-


--
Fight Spam! Join CAUCE! == http://www.cauce.org/
_______________________________________________
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.


---
It is dark; you are likely to be eaten by a grue. -Zork
_______________________________________________
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: 
 >Thread memory leak (From: Chuck Rice <email@hidden>)

  • Prev by Date: [ANN] Formation of Western Pennsylvania Cocoa Programmer's Group
  • Next by Date: Re: TextView problem
  • Previous by thread: Thread memory leak
  • Next by thread: Re: Thread memory leak
  • Index(es):
    • Date
    • Thread