Re: Thread memory leak
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.