Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with Cocoa (only in Carbon)



Hi,

When I run the example 'Cocoa in Carbon' application here...
http://developer.apple.com/samplecode/Sample_Code/Cocoa/ SpellingChecker.htm

... I get the following errors in the Console ...

2004-01-30 19:43:09.409 SpellingChecker[1577] *** _NSAutoreleaseNoPool(): Object 0x3366f0 of class NSEvent autoreleased with no pool in place - just leaking
2004-01-30 19:43:11.069 SpellingChecker[1577] *** _NSAutoreleaseNoPool(): Object 0x37f400 of class NSCarbonWindowContentView autoreleased with no pool in place - just leaking
2004-01-30 19:43:11.352 SpellingChecker[1577] *** _NSAutoreleaseNoPool(): Object 0x3a2d00 of class NSCarbonWindow autoreleased with no pool in place - just leaking
...

I get hundreds of these if I use the built app for a few minutes. What exactly should I do? Are these errors something I should be concerned about? They do not appear to change the memory allocation to the app, and don't appear to affect stability.

For those not acquainted with this piece of sample code, it is doing this already...
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
... my code here
[pool release];

Is there something else I need to be doing to prevent the aforementioned errors?

And is this a new bug in Panther? I don't remember having this problem in Jaguar.

Thanks,
-Chilton
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.