Klaus Backert wrote:

On 31 Aug 2009, at 02:45, Kyle Sluder wrote:

On Aug 30, 2009, at 5:33 PM, Klaus Backert <klaus.back...@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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to