• 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: Memory Management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory Management


  • Subject: Re: Memory Management
  • From: Nat! <email@hidden>
  • Date: Fri, 1 Aug 2003 00:53:48 +0200

Am Donnerstag, 31.07.03 um 03:16 Uhr schrieb Marcel Weiher:



I would like to see someone prove to me in working code, that adding an object to an autorelease pool does not guarantee that it will live at least until the pool is purged.

int main( int argc, char *argv[] )
{
id pool=[NSAutoreleasePool new];
id string = [NSMutableString stringWithFormat:@"Hello World: %d",argc];
[string dealloc];

exit(0);
}


I take this as a convoluted way of saying, that I am right :)


Nat!
------------------------------------------------------
Es ist eine so angenehme Empfindung sich mit etwas zu
beschdftigen was man nur halb kann, da_ Niemand den
Dilettanten schelten sollte, wenn er sich mit einer
Kunst abgibt, die er nie lernen wird. -- JWG
_______________________________________________
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.

  • Prev by Date: Re: NSArray and Objects
  • Next by Date: Re: Memory Management (Part II)
  • Previous by thread: Re: NSArray and Objects
  • Next by thread: Re: Memory Management (Part II)
  • Index(es):
    • Date
    • Thread