Re: _NSAutoreleaseNoPool missing in Snow Leopard
Re: _NSAutoreleaseNoPool missing in Snow Leopard
- Subject: Re: _NSAutoreleaseNoPool missing in Snow Leopard
- From: Roland King <email@hidden>
- Date: Mon, 31 Aug 2009 09:29:56 +0800
Klaus Backert wrote:
On 31 Aug 2009, at 02:45, Kyle Sluder wrote:
On Aug 30, 2009, at 5:33 PM, Klaus Backert <Klaus.Backert@t-
online.de> wrote:
No Objective-C program code of my own has been executed up to this
point. I have not been able to manage this.
Are you doing anything before calling NSApplicationMain?
My NSApplicationMain is the "standard" one:
#import <Cocoa/Cocoa.h>
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **) argv);
}
Previous to any of my own Objective-C code the following C++ module
initializer function is executed, which is contained in a C++ library
of mine:
static bool WorldIsInitialized = false;
static void __attribute__((constructor)) InitializeWorld()
{
DKT_LOG_INVOKING;
if (!dkt::WorldIsInitialized)
{
DKT_LOG("initialize ODE library");
dkt::Integer isODEInitialized = dInitODE2(0);
DKT_ASSERT(isODEInitialized);
dkt::WorldIsInitialized = true;
}
}
Klaus
DKT_LOG("initialize ODE library");
What does that macro do - does it create an autoreleased NSString from
its argument and then NSLog it? If so, that NSString is being leaked as
the message suggests.
_______________________________________________
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