Click here to Skip to main content
16,017,069 members

Survey Results

When programming, do you explicitly test for out-of-memory conditions?   [Edit]

Survey period: 29 Sep 2008 to 6 Oct 2008

It's simple enough to do, but in this Gigabyte era, do you do it?

OptionVotes% 
Yes, always1167.71
Yes, mostly1036.85
Yes, sometimes26717.75
No87458.11
I don"t know how1449.57



 
AnswerWOW. No wonder so much software sucks these days. Pin
Severian@Severian.org7-Oct-08 10:50
Severian@Severian.org7-Oct-08 10:50 
GeneralIt depends Pin
Madhu Kampurath2-Oct-08 22:11
Madhu Kampurath2-Oct-08 22:11 
GeneralMithun/Arun Pin
MITHUNKUMAR882-Oct-08 2:20
MITHUNKUMAR882-Oct-08 2:20 
GeneralI guess it is a generational thing. PinPopular
GTWilson1-Oct-08 12:57
GTWilson1-Oct-08 12:57 
GeneralRe: I guess it is a generational thing. Pin
John R. Shaw3-Oct-08 16:09
John R. Shaw3-Oct-08 16:09 
GeneralRe: I guess it is a generational thing. Pin
Member 965-Oct-08 19:56
Member 965-Oct-08 19:56 
GeneralRe: I guess it is a generational thing. Pin
GTWilson9-Oct-08 17:24
GTWilson9-Oct-08 17:24 
GeneralRe: I guess it is a generational thing. Pin
Member 969-Oct-08 19:54
Member 969-Oct-08 19:54 
GeneralRe: I guess it is a generational thing. Pin
raicuandi6-Oct-08 0:13
raicuandi6-Oct-08 0:13 
GeneralRe: I guess it is a generational thing. Pin
W Balboos, GHB6-Oct-08 2:02
W Balboos, GHB6-Oct-08 2:02 
GeneralRe: I guess it is a generational thing. Pin
raicuandi6-Oct-08 4:22
raicuandi6-Oct-08 4:22 
GeneralRe: I guess it is a generational thing. Pin
ghle6-Oct-08 2:31
ghle6-Oct-08 2:31 
Generalalways running application Pin
tommyligo1-Oct-08 9:57
tommyligo1-Oct-08 9:57 
GeneralMy 2 cents Pin
Adrian Cole1-Oct-08 8:00
Adrian Cole1-Oct-08 8:00 
GeneralRe: My 2 cents Pin
Roger Stoltz1-Oct-08 22:15
Roger Stoltz1-Oct-08 22:15 
GeneralStunned Pin
Chris Maunder1-Oct-08 7:57
cofounderChris Maunder1-Oct-08 7:57 
GeneralRe: Stunned Pin
WillemM1-Oct-08 9:04
WillemM1-Oct-08 9:04 
GeneralRe: Stunned Pin
Ernest Laurentin1-Oct-08 9:20
Ernest Laurentin1-Oct-08 9:20 
GeneralRe: Stunned Pin
WillemM1-Oct-08 19:58
WillemM1-Oct-08 19:58 
GeneralRe: Stunned Pin
Ernest Laurentin2-Oct-08 5:20
Ernest Laurentin2-Oct-08 5:20 
GeneralRe: Stunned Pin
Sandork2-Oct-08 8:48
Sandork2-Oct-08 8:48 
What exactly would you do in a situation where you just ran out of memory? Doing pretty much anything at all is going to require allocating memory. Memory that is probably unavailable. In C++, if you do anything, you could override the default 'new' allocator and display a message box or something and then bail. But if you just ran the system out of memory, there isn't a whole lot of chance that the message box is even going to appear in the first place. An unhandled exception from a RAM allocation failure, on the other hand, that gets to the top and terminates the application allows the application to be debugged later by leveraging WER. This allows the author to focus on getting code written and not writing a zillion different little "what-if" lines of code. Additionally, a lot of authors simply assume low memory scenarios will get handed off to swap, which generally works - sluggishly, but it works. Granted, this perhaps isn't the way to handle low memory scenarios, but I can't remember the last time Windows said, "This program crashed because it couldn't allocate the necessary memory." Nor have I ever seen Windows offer to tell the user that if they kill programs X, Y, and Z off, the program they are running will have more memory and run faster.
GeneralRe: Stunned Pin
chaiguy13373-Oct-08 5:17
chaiguy13373-Oct-08 5:17 
GeneralRe: Stunned Pin
John R. Shaw3-Oct-08 16:02
John R. Shaw3-Oct-08 16:02 
GeneralRe: Stunned Pin
#realJSOP5-Oct-08 0:13
professional#realJSOP5-Oct-08 0:13 
GeneralRe: Stunned Pin
Member 965-Oct-08 19:58
Member 965-Oct-08 19:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.