|
-
April 14th, 2006, 05:06 PM
#7
Re: checking if allocation through new fails or not?
 Originally Posted by MrViggy
In general, I think the idea is that if your app is requesting small amounts of memory, and it fails to get any (which means, on Windows, you're probably getting close to the 2GB limit), there's not much more your applciation can do (can't continue).
I have experienced applications that supported very well out-of-memory conditions.
Simply, the current operation fail, but it is still possible to use the software, save, modify what I want, etc...
I have also seen applications crashing stupidly...
"inherit to be reused by code that uses the base class, not to reuse base class code", Sutter and Alexandrescu, C++ Coding Standards.
Club of lovers of the C++ typecasts cute syntax: Only recorded member.
Out of memory happens! Handle it properly!
Say no to g_new()!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|