Click here to Skip to main content
16,017,151 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 
Oh hell yeah! I once wanted to showcase a project that we didn't got a chance to test much, it worked on our systems (which we of course run in debug mode all the time), but when I tried to start it on the interviewer's machine... crash! (although it worked just fine in release mode on my home PC; at least the 2nd program worked...)

Then again, I mostly write for my own needs, because so much of the software out there, even the good stuff like Winamp, is retarded. When my program crashes, which is exceptionally rare, I know why. I guess in an out-of-memory situation, I could only inform the user, log it, and close the program, but even doing that would be hard knowing I can no longer allocate memory. (ie: does MessageBox allocate from the heap? would have to test...)

But I guess you can never be sure. I've read in Symbian's documentation (another retarded piece of software, that Symbian) that you should not use the default stack size of 8KB or whatever it is, because even if your program works today, the functions you call could use more stack space in a next OS update, and run your program into a stack overflow!
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 PinPopular
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 
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.