• 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
AutoReleasePool question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AutoReleasePool question.


  • Subject: AutoReleasePool question.
  • From: John Draper <email@hidden>
  • Date: Sat, 25 Mar 2006 19:12:04 -0800

Hi,

I'm getting a lot of these messages...

2006-03-25 18:41:36.716 newSipTestApp[2011] *** _NSAutoreleaseNoPool(): Object 0x6bdd890 of class NSCFNumber autoreleased with no pool in place - just leaking
2006-03-25 18:41:36.716 newSipTestApp[2011] *** _NSAutoreleaseNoPool(): Object 0x6bddb40 of class NSConcreteValue autoreleased with no pool in place - just leaking
2006-03-25 18:41:36.716 newSipTestApp[2011] *** _NSAutoreleaseNoPool(): Object 0x6bddb80 of class NSIdEnumerator autoreleased with no pool in place - just leaking
2006-03-25 18:41:36.727 newSipTestApp[2011] *** _NSAutoreleaseNoPool(): Object 0x6bddb40 of class NSConcreteValue autoreleased with no pool in place - just leaking


How do I find out which objects these are... Note the addresses of the object instances
are given, but how do I find out which ones there are?


I'm using X-Code 1.5, and I don't have any of these objects in my application, and yet it is indicating
these are "leaking".


Is there any tips,  app notes,  and other references that can explain this.
I am doing a lot of Mixing of C++ objects with Objective C objects.

How can I find out where to put these statements.?

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
   < some code >
[pool release];

I am calling and managing a lot of threads, but they are C++ threads. Not much
under control of Cocoa. But am I supposed to wrap this above code in the C++ threads?
If so, what part of the thread? The part that gets called repeatedly, or the
part the initializes the thread... IE: Before initializing...


NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

And calling....

[pool release];

When thread is deleted...   I'm not sure...  but I'm getting thousands of
these messages above.

How can I display a list of Autorelease pools that are active in my application
using X-code 1.5?


Can someone please point me to an App Note that can help me out?
I googled for this information and amazed to find that a LOT of people
are asking the same questions, but I found NO answers on any of the google
finds.    HELP!!!

john
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: AutoReleasePool question.
      • From: Joseph Kelly <email@hidden>
    • Re: AutoReleasePool question.
      • From: Daniel Hazelbaker <email@hidden>
  • Prev by Date: Help with Xcode i386 Link problems
  • Next by Date: lipo doesn't touch (in the timestamp modification sense) the output file?
  • Previous by thread: Re: Help with Xcode i386 Link problems
  • Next by thread: Re: AutoReleasePool question.
  • Index(es):
    • Date
    • Thread