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

Re: memory leaks


  • Subject: Re: memory leaks
  • From: Yann Bizeul <email@hidden>
  • Date: Fri, 25 Jun 2004 00:36:53 +0200

I *never* saw this message when not playing with thread.
Perhaps you are using a buggy library, or wopied a piece of code that
detach new threads in your app ? Try performing a search on NSThread.

Le 24 juin 04, ` 23:51, John Spicer a icrit :

> Hmmmm....I suppose it's possible that each window created creates it's
> own thread. If it does, I don't know about it!
>
> When I debug I get only one debug window, so I'm fairly sure I've only
> got one thread going.
>
> On Jun 24, 2004, at 4:46 PM, Bob Ippolito wrote:
>
>>
>> On Jun 24, 2004, at 5:22 PM, John Spicer wrote:
>>
>>> I have added a second window to my app for now for testing, and now
>>> am getting memory leaks. The code is almost identical to the first
>>> window, which does not have any leaks.
>>>
>>> Here are two:
>>>
>>> 2004-06-24 15:59:03.678 BigMolarD2WApplication[2398] ***
>>> _NSAutoreleaseNoPool(): Object 0x30cf60 of class NSURL autoreleased
>>> with no pool in place - just leaking
>>> 2004-06-24 15:59:03.680 BigMolarD2WApplication[2398] ***
>>> _NSAutoreleaseNoPool(): Object 0x30f840 of class NSCFDictionary
>>> autoreleased with no pool in place - just leaking
>>>
>>>
>>> I have added a pool in the main file as shown; seems to make no
>>> difference.
>>
>> NSApplicationMain(...) deals with creating a pool for you. There's
>> an EXTREMELY HIGH likelihood that you are using threads but not
>> telling us about it. New threads do not automatically get an
>> NSAutoreleasePool, so you have to manage them on the threads that you
>> create.
>>
>> -bob
> _______________________________________________
> 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.
>
>
>
--
Yann Bizeul - yann at tynsoe.org
http://projects.tynsoe.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.


References: 
 >memory leaks (From: John Spicer <email@hidden>)
 >Re: memory leaks (From: Bob Ippolito <email@hidden>)
 >Re: memory leaks (From: John Spicer <email@hidden>)

  • Prev by Date: NSURLConnection threads creation
  • Next by Date: Available screen modes?
  • Previous by thread: Re: memory leaks
  • Next by thread: figuring out the length of a string
  • Index(es):
    • Date
    • Thread