• 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: static objects "autoreleased with no pool in place - just leaking"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static objects "autoreleased with no pool in place - just leaking"


  • Subject: Re: static objects "autoreleased with no pool in place - just leaking"
  • From: m <email@hidden>
  • Date: Fri, 13 Feb 2004 00:02:24 -0800

On Feb 12, 2004, at 11:50 PM, j o a r wrote:

Show us the code where the warnings occur (take single steps in GDB if needed, to be able to pin point the location).

It happens just as the instances are allocated. But you can see for your self!

- in XCode, create a non-document Cocoa app.
- open main.m and paste the code below into it
- save main.m as main.mm (note the double-m extension)
- compile and run while watching the console window

You should see

...class NSDeviceRGBColor autoreleased with no pool in place - just leaking

// -------------------------------------------------------
// main.mm

#import <Cocoa/Cocoa.h>

static NSColor* sDefaultLabelColor = [NSColor colorWithDeviceRed: 0.0 green:0.0 blue:0.0 alpha:1.0];

int main(int argc, const char *argv[])
{
return NSApplicationMain(argc, argv);
}
_______________________________________________
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.

  • Follow-Ups:
    • Re: static objects "autoreleased with no pool in place - just leaking"
      • From: "Louis C. Sacha" <email@hidden>
    • Re: static objects "autoreleased with no pool in place - just leaking"
      • From: j o a r <email@hidden>
References: 
 >static objects "autoreleased with no pool in place - just leaking" (From: m <email@hidden>)
 >Re: static objects "autoreleased with no pool in place - just leaking" (From: j o a r <email@hidden>)
 >Re: static objects "autoreleased with no pool in place - just leaking" (From: m <email@hidden>)
 >Re: static objects "autoreleased with no pool in place - just leaking" (From: j o a r <email@hidden>)

  • Prev by Date: Re: static objects "autoreleased with no pool in place - just leaking"
  • Next by Date: Re: static objects "autoreleased with no pool in place - just leaking"
  • Previous by thread: Re: static objects "autoreleased with no pool in place - just leaking"
  • Next by thread: Re: static objects "autoreleased with no pool in place - just leaking"
  • Index(es):
    • Date
    • Thread