Re: Memory Leak
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
References: | |
| >Re: Memory Leak (From: "MacArthur, Ian (SELEX GALILEO, UK)" <email@hidden>) |