• 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: Headless Cocoa/Java app - autorelease
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Headless Cocoa/Java app - autorelease


  • Subject: Re: Headless Cocoa/Java app - autorelease
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 2 May 2005 13:57:49 -0700


On May 2, 2005, at 11:40 AM, String Larson wrote:

Do the sub-threads need AutoreleasePools as well ? 

Any thread using aspects of the Cocoa framework (or related frameworks) runs under the assumption that the thread they are running in has a auto-release pool in place and more importantly one that is managed sensibly as needed (created/released as needed, saw per event processed, etc.)

So the answer is yes. The message is directly say that is in fact what is wrong.

I see no reason that you need to wrap the boot or main of JBoss with a auto-release pool because neither of those are likely using Cocoa directly and if they happen to be then the pool management you have isn't useful because the pool exists for the life of the JBosses main, in other words the pool would just accumulate objects to be released because the pool itself never gets deallocated.

Review...

<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/AutoreleasePools.html>

-Shawn
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Headless Cocoa/Java app - autorelease
      • From: String Larson <email@hidden>
References: 
 >Headless Cocoa/Java app - autorelease (From: String Larson <email@hidden>)

  • Prev by Date: Re: Headless Cocoa/Java app - autorelease
  • Next by Date: Application Design Guidelines
  • Previous by thread: Re: Headless Cocoa/Java app - autorelease
  • Next by thread: Re: Headless Cocoa/Java app - autorelease
  • Index(es):
    • Date
    • Thread