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

Re: Memory Leak


  • Subject: Re: Memory Leak
  • From: Jim Witte <email@hidden>
  • Date: Mon, 26 May 2008 14:31:54 -0400

On May 26, 2008, at 12:52 PM, MacArthur, Ian (SELEX GALILEO, UK) wrote:
Well, not necessarily.  For example, if you have a large number of C++
objects, then you can call the destructors on exit. Or you can just
exit. 
Calling the destructors takes time (often a significant amount, like 20
seconds or so.)
Marshall Clow wrote:
Lots of stuff happens after main () exits. (especially in C++) Destructors for global objects run. A leak detector needs to check after that.

  Are destructors always run (or run in the same way if called explicitly by the programmer or by the OS itself)?  If so, it would seem like any delay the destructors take to run would happen no matter whether the programmer explicitly clean up the objects or just lets the OS do it anyway.  Unless the OS runs the destructors in the background and so doesn't block the user interface, whereas the program would appear to hang while it calls them in the main thread before releasing the UI.

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Memory Leak
      • From: Scott Ribe <email@hidden>
    • Re: Memory Leak
      • From: Marshall Clow <email@hidden>
References: 
 >Re: Memory Leak (From: "MacArthur, Ian (SELEX GALILEO, UK)" <email@hidden>)

  • Prev by Date: Re: Memory Leak
  • Next by Date: Re: Memory Leak
  • Previous by thread: Re: Memory Leak
  • Next by thread: Re: Memory Leak
  • Index(es):
    • Date
    • Thread