• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: _NSAutoreleaseNoPool missing in Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: _NSAutoreleaseNoPool missing in Snow Leopard
      • From: Kyle Sluder <email@hidden>
    • Re: _NSAutoreleaseNoPool missing in Snow Leopard
      • From: Klaus Backert <email@hidden>
References: 
 >_NSAutoreleaseNoPool missing in Snow Leopard (From: Seth Willits <email@hidden>)
 >Re: _NSAutoreleaseNoPool missing in Snow Leopard (From: Klaus Backert <email@hidden>)
 >Re: _NSAutoreleaseNoPool missing in Snow Leopard (From: Kyle Sluder <email@hidden>)
 >Re: _NSAutoreleaseNoPool missing in Snow Leopard (From: Klaus Backert <email@hidden>)

  • Prev by Date: Re: _NSAutoreleaseNoPool missing in Snow Leopard
  • Next by Date: Re: _NSAutoreleaseNoPool missing in Snow Leopard
  • Previous by thread: Re: _NSAutoreleaseNoPool missing in Snow Leopard
  • Next by thread: Re: _NSAutoreleaseNoPool missing in Snow Leopard
  • Index(es):
    • Date
    • Thread