Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 16, 2010, 07:53 PM   #1
bahlquist
macrumors member
 
Join Date: Oct 2010
Memory leaks

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?
bahlquist is offline   0 Reply With Quote
Old Oct 16, 2010, 09:12 PM   #2
lee1210
macrumors 68040
 
lee1210's Avatar
 
Join Date: Jan 2005
Location: Dallas, TX
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.

-Lee

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 09:49 PM.
lee1210 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Memory Leaks in Mavericks yoconman OS X Mavericks (10.9) 5 Nov 9, 2013 11:34 AM
iOS 7 Memory Leaks DavidBlack iOS 7 10 Sep 29, 2013 01:48 PM
iMessages & Memory Leaks jwm2 Mac Applications and Mac App Store 1 Feb 28, 2013 10:16 PM
Are they ever going to fix the safari memory leaks? can.rules Mac Applications and Mac App Store 8 Nov 3, 2012 05:34 PM
Huge memory leaks in Safari Organichu Mac Basics and Help 1 Jul 30, 2012 03:58 PM

Forum Jump

All times are GMT -5. The time now is 01:41 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC