|Oct 16, 2010, 08:53 PM||#1|
If you fail to release memory in a program, what is the worst that can happen? Is it just the case that you must shutdown the computer to release the memory, or can you have more significant problems?
|Oct 16, 2010, 10:12 PM||#2|
Nothing of that severity at all. When your program exits, the memory is returned to the system. Worst case users have to restart your program as it gets bloaty, and they get sick of doing so, and stop using your program. You're not going to do anything to hardware, etc.
EDIT: I guess if you leak badly enough that the system exhausts RAM and swap then the OS will no longer be able to grant requests for memory, and the system will start behaving oddly. This is the most extreme case, but it happens.
Last edited by lee1210; Oct 16, 2010 at 10:49 PM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|If No Memory Leaks, Is It Good Enough for Memory Management?||greatfree||Mac Programming||8||Jun 20, 2011 09:01 AM|
|What's taking my active memory?||gatortpk||Mac Applications and Mac App Store||2||Jan 21, 2011 04:41 AM|
|Memory Management Issues - Memory Leaking Followed By Autorelease Crash||Kelmon||Mac Programming||7||Aug 4, 2006 02:34 AM|
|Application Memory Leaks?||wrldwzrd89||General Mac Discussion||2||Sep 19, 2004 08:56 AM|
|Panther Memory Leak??||Grimace||Macintosh Computers||17||Mar 6, 2004 04:18 PM|
All times are GMT -5. The time now is 11:24 AM.