• 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
NSAutoreleasePool and static data member constructors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAutoreleasePool and static data member constructors


  • Subject: NSAutoreleasePool and static data member constructors
  • From: Eyal Redler <email@hidden>
  • Date: Wed, 10 Oct 2007 10:09:59 +0200

Hi,

I have a C++/Objective-C application which has some constructors for static data members accessing autorelased Objective-C objects and I get messages like this in the console:
* _NSAutoreleaseNoPool(): Object 0xd06e70 of class NSCFString autoreleased with no pool in place - just leaking


Obviously, I need to setup an autorelase pool before all the static member construction. Is there a way to do this?

TIA


Eyal Redler ====================================== RedleX - Makers of Mellel www.mellel.com email@hidden email@hidden Work: 972-3-5226849 Mobile: 972-542-585545

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Convert NSOpenGLView pixel coordinates to OpenGL world coordinates
  • Next by Date: NSAutoreleasePool and static data member constructors
  • Previous by thread: [moderator] job related postings
  • Next by thread: NSAutoreleasePool and static data member constructors
  • Index(es):
    • Date
    • Thread