• 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
Leaks When Running MultiThreaded (Even w/ AutoRelease Pool)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Leaks When Running MultiThreaded (Even w/ AutoRelease Pool)


  • Subject: Leaks When Running MultiThreaded (Even w/ AutoRelease Pool)
  • From: Philip Weaver <email@hidden>
  • Date: Fri, 3 May 2002 20:35:59 -0500

My application behaves *leak-free* when run single-threaded. I've verified this using OmniObjectMeter. But, when I integrate threading into this exact same code, all sorts of objects do not get released. And I am creating an AutoreleasePool for the worker thread and am even releasing it at the end of the worker thread.

Do you have any pointers for other causes of memory leaks when threading? I've just started to use Distributed Objects in order to update the main GUI thread at the end of this repeating worker thread. Even though this very simple DO setup functions correctly, it still leaks.

Peculiarly, even though I've verified that the retainCount of one of my "leaking" objects is correct (1) before it is released, OmniObjectMeter still insists that the count of this object is accumulating over the duration/looping of the program.

Please help if you can. I'm actively scouring the archives. :-)

Philip Weaver
_______________________________________________
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.

  • Follow-Ups:
    • Re: Leaks When Running MultiThreaded (Even w/ AutoRelease Pool)
      • From: Rich Long <email@hidden>
    • Re: Leaks When Running MultiThreaded (Even w/ AutoRelease Pool)
      • From: "Timothy J. Wood" <email@hidden>
  • Prev by Date: Re: rightMouseDown: (NSEvent) theEvent
  • Next by Date: Re: Leaks When Running MultiThreaded (Even w/ AutoRelease Pool)
  • Previous by thread: Re: Moving objects in NSMutableArray
  • Next by thread: Re: Leaks When Running MultiThreaded (Even w/ AutoRelease Pool)
  • Index(es):
    • Date
    • Thread