Re: NSHomeDirectory() leak?
Re: NSHomeDirectory() leak?
- Subject: Re: NSHomeDirectory() leak?
- From: Jörn Salewski <email@hidden>
- Date: Sun, 01 Feb 2004 15:41:46 +0100
Every thread in a cocoa program needs its own autorelease pool.
Normaly the autorelease pool of the main thread is created automatically by
the NSApplication instance and you don't have to care.
If you create a secondary thread, you have to create and manage an
autorelease pool manually yourself.
Cheers,
Joern Salewski
am 01.02.2004 15:20 Uhr schrieb ralph fogg unter email@hidden:
>
I'm stuck with a silly problem! I have the following line:
>
>
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
>
>
Can anybody help me? I'm new to all this and would be very thankful.
>
>
_________________________________________________________________
>
What are the 5 hot job markets for 2004? Click here to find out.
>
http://msn.careerbuilder.com/Custom/MSN/CareerAdvice/WPI_WhereWillWeFindJobsIn
>
2004.htm?siteid=CBMSN3006&sc_extcmp=JS_wi08_dec03_hotmail1
>
_______________________________________________
>
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.
_______________________________________________
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.