out-of-memory

C++/Windows: How to report an out-of-memory exception (bad_alloc)?

Hi, I'm currently working on an exception-based error reporting system for Windows MSVC++ (9.0) apps (i.e. exception structures & types / inheritance, call stack, error reporting & logging and so on). My question now is: how to correctly report & log an out-of-memory error? When this error occurs, e.g. as an bad_alloc thrown by the ne...

What to do when an out-of-memory error occurs?

Possible Duplicate: What's the graceful way of handling out of memory situations in C/C++? Hi, this seems to be a simple question a first glance. And I don't want to start a huge discussion on what-is-the-best-way-to-do-this.... Context: Windows >= 5, 32 bit, C++, Windows SDK / Win32 API But after asking a similar questio...