6 ms·
" If you are a desktop machine and run out of memory, don’t try to recover from the panic, quit the program or even shut-down the computer." Taken at face valu
by florin_g 5y ago
" If you are a desktop machine and run out of memory, don’t try to recover from the panic, quit the program or even shut-down the computer."
Taken at face value and without additional context, this statement displays an appalling lack of respect for the user.
- deleted 5y ago[deleted]
- AnIdiotOnTheNet 5y agoIt would seem that the clarification in parent agrees: > On desktop applications that I have worked on (I know this does not apply to all), if we did run out of memory, the better option is to just crash rather than try to recover. But of course some applications cannot do this, especially when dealing with third-party programs, such as databases (as you state). In those cases, the best you can do is empirically test how much is required and gracefully handle those cases when you do OOM (if possible). That's part of your problem, it's not an external thing. If you can control things, try to.