• 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: thread insanity...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: thread insanity...


  • Subject: Re: thread insanity...
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 27 Mar 2006 15:23:56 -0700


On Mar 26, 2006, at 3:14 AM, John Draper wrote:

2006-03-25 15:52:33.340 newSipTestApp[1760] *** _NSAutoreleaseNoPool (): Object 0xb722e10 of class NSConcreteData autoreleased with no pool in place - just leaking
2006-03-25 15:52:33.341 newSipTestApp[1760] *** _NSAutoreleaseNoPool (): Object 0x8224c00 of class NSConcreteData autoreleased with no pool in place - just leaking
2006-03-25 15:52:33.341 newSipTestApp[1760] *** _NSAutoreleaseNoPool (): Object 0xb722d20 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2006-03-25 15:52:33.341 newSipTestApp[1760] *** _NSAutoreleaseNoPool (): Object 0xb722c60 of class NSIdEnumerator autoreleased with no pool in place - just leaking

Actually, you get these with NSThread as well. It simply means you need to create an NSAutoreleasePool before you make any other ObjC calls, and then release it when it is no longer needed.


Ok, now how would I do this? Can someone be kind enough to pass me a snippit if
code which can do this? Where would be a good place to do this? In the
awakeFromNIB method?

IIRC, you can force Cocoa to enter multi-threaded mode without creating any new threads simply by calling [NSThread detachNewThreadSelector:NULL toTarget:nil withObject:nil] and you should probably call it before creating the first pthread.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ 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
References: 
 >thread insanity... (From: John Draper <email@hidden>)

  • Prev by Date: Re: Memory Management question
  • Next by Date: Re: 1.0 divided by 10 = 0.10000000000000001?
  • Previous by thread: thread insanity...
  • Next by thread: How to move forward in building Core Data Applications: Beginner to Intermediate & Shuffle an NSArrayController
  • Index(es):
    • Date
    • Thread