• 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: NSHomeDirectory() leak?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSHomeDirectory() leak?


  • Subject: Re: NSHomeDirectory() leak?
  • From: lbland <email@hidden>
  • Date: Sun, 1 Feb 2004 09:55:22 -0500

On Feb 1, 2004, at 9:20 AM, ralph fogg wrote:

NSLog ([NSHomeDirectory() stringByAppendingPathComponent: @"Library/Application Support"]);

And I get the following error:

2004-02-01 15:19:29.731 App[12321] *** _NSAutoreleaseNoPool(): Object 0x30d070 of class NSCFString autoreleased with no pool in place - just leaking

try this...

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog ([NSHomeDirectory() stringByAppendingPathComponent: @"Library/Application Support"]);
[pool release];

-lance

Lance Bland
mailto:email@hidden
VVI
888-VVI-PLOT
http://www.vvi.com
_______________________________________________
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: 
 >NSHomeDirectory() leak? (From: "ralph fogg" <email@hidden>)

  • Prev by Date: Re: Deployable product
  • Next by Date: Re: NSHomeDirectory() leak?
  • Previous by thread: Re: NSHomeDirectory() leak?
  • Next by thread: Re: NSHomeDirectory() leak?
  • Index(es):
    • Date
    • Thread