Re: Error
Re: Error
- Subject: Re: Error
- From: email@hidden
- Date: Fri, 15 Mar 2002 17:32:42 -0800
2002-03-16 00:05:57.824 SimpleLister[6716] *** _NSAutoreleaseNoPool():
Object 0x2965760 of class NSCFString autoreleased with no pool in
place -
just leaking
Anyone can tell me what does it means and what should i do with it?
Lucasz, this question was already asked by you and answered perfectly
coherently by Angela Brett, yesterday on this list. You have also
received perfectly good replies from me to several questions you have
asked, and then proceeded to ask them again on this list. You also
repeatedly ask questions which have been answered in the list archives,
*after* people tell you to look in the archives for the answer to that
very question.
I don't know about others on this list, but I am seriously considering
never answering another question from you. You need to show that you're
listening and that it isn't just a waste of time for people to try to
help you. Do you even read the replies people send you?
For your easy reference (since apparently you don't know how to look
in the archives...), here, again, is Angela Brett's explanation of why
this is happening:
I'd say you have to move the line NSAutoreleasePool *pool =
[[NSAutoreleasePool alloc] init]; above the other ones, or else
assign the values to direnum and fullPath later in the code instead
of where they're declared. The way it is, you're using
[[NSFileManager defaultManager]
enumeratorAtPath:[path stringValue]];
and
[path stringValue];
which both return autoreleased objects (at least the first one does -
that seems to be what's causing the error message), before setting up
an autoreleasePool. If you try to autorelease an object when there's
no autoreleasePool in place it won't work - you get that error - and
it will leak memory because the objects will not be released since
they couldn't be put into an autorelease pool.
This is nothing if not clear. And if you really need more
information, the NSAutoreleasePool doc is just sitting there, waiting
for you to read it.
Sorry for the flames; I held my temper in over and over when you did
this to me, but now I see you doing it to others as well, I can't help
but comment. Please stop abusing the generosity of the people on this
list. Read the answers people give you. Look in the archives before
answering a question. I, for one, will not answer another foolish,
unresearched question from you.
Ben Haller
Stick Software
_______________________________________________
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.