Re: memory leaks
Re: memory leaks
- Subject: Re: memory leaks
- From: Bob Ippolito <email@hidden>
- Date: Thu, 24 Jun 2004 17:46:50 -0400
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
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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>) |