Click here to Skip to main content
15,912,932 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



 
GeneralRe: It is easy to run out of memory Pin
CDP180228-Sep-08 23:32
CDP180228-Sep-08 23:32 
GeneralRe: It is easy to run out of memory Pin
Vladimir D28-Sep-08 23:51
Vladimir D28-Sep-08 23:51 
General... depends what you program ! Pin
Gilliard28-Sep-08 19:45
Gilliard28-Sep-08 19:45 
GeneralRe: ... depends what you program ! Pin
CDP180228-Sep-08 23:19
CDP180228-Sep-08 23:19 
GeneralI design all my programs to run in... Pin
Steve Echols28-Sep-08 19:29
Steve Echols28-Sep-08 19:29 
GeneralRe: I design all my programs to run in... Pin
Palavos28-Sep-08 21:28
Palavos28-Sep-08 21:28 
GeneralRe: I design all my programs to run in... Pin
Jörgen Sigvardsson29-Sep-08 22:52
Jörgen Sigvardsson29-Sep-08 22:52 
GeneralThe OS should handle it Pin
chaiguy133728-Sep-08 18:30
chaiguy133728-Sep-08 18:30 
It seems to me, having a program crash because the system ran out of memory is the most ridiculous thing ever. If there isn't enough memory available to create a new object, the OS shouldn't crash the program--it should simply pause it and give an out of memory warning to the user so they can free some up and then the program would unfreeze when enough is available to continue safely. Yeah there are a few scenarios this would still have problems with (like remoting) but for the most part it would be a lot nicer.

In such a managed world, having your program throw a random exception when there is no more memory is just strange. I remember the first time I got that exception--I was like "are you kidding??".

“Time and space can be a bitch.”
–Gushie, Quantum Leap

{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’)            Built with home-grown CodeProject components!
-”-”-

General[Message Deleted] Pin
Cristian Amarie28-Sep-08 18:55
Cristian Amarie28-Sep-08 18:55 
GeneralRe: The OS should handle it Pin
chaiguy133728-Sep-08 19:02
chaiguy133728-Sep-08 19:02 
General[Message Deleted] Pin
Cristian Amarie28-Sep-08 22:31
Cristian Amarie28-Sep-08 22:31 
GeneralRe: The OS should handle it Pin
chaiguy133729-Sep-08 3:48
chaiguy133729-Sep-08 3:48 
GeneralRe: The OS should handle it Pin
Mladen Janković29-Sep-08 13:03
Mladen Janković29-Sep-08 13:03 
GeneralRe: The OS should handle it Pin
chaiguy133729-Sep-08 13:04
chaiguy133729-Sep-08 13:04 
GeneralRe: The OS should handle it Pin
Eric Eggers29-Sep-08 5:15
Eric Eggers29-Sep-08 5:15 
GeneralRe: The OS should handle it Pin
chaiguy133729-Sep-08 13:05
chaiguy133729-Sep-08 13:05 
GeneralRe: The OS should handle it Pin
Vasudevan Deepak Kumar29-Sep-08 9:03
Vasudevan Deepak Kumar29-Sep-08 9:03 
GeneralRe: The OS should handle it Pin
chaiguy133729-Sep-08 9:24
chaiguy133729-Sep-08 9:24 
General[Message Deleted] Pin
Cristian Amarie3-Oct-08 1:11
Cristian Amarie3-Oct-08 1:11 
GeneralRe: The OS should handle it Pin
chaiguy13373-Oct-08 3:10
chaiguy13373-Oct-08 3:10 
General[Message Deleted] Pin
Cristian Amarie3-Oct-08 5:08
Cristian Amarie3-Oct-08 5:08 
GeneralRe: The OS should handle it Pin
chaiguy13373-Oct-08 5:12
chaiguy13373-Oct-08 5:12 

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.