U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Out of memory panic
Re: Out of memory panic [message #36309 is a reply to message #36264] Sat, 19 May 2012 14:05 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1313
Registered: September 2007
Ultimate Contributor
IMHO in modern OS with virtual memory, a true out-of-memory error is almost impossible.
What you usually get is a system slowdown because of swapping.

OTOH, memory corruptions often are reported as out of memory, and in my experience, there's nothing you can do about it... most recovery routines need working allocators.

The only solution I can think about is to have a separate block of preallocated memory usable by emergency routine as a pool for newly allocated blocks while trying to close gracefully the application, maybe saving some work.
Or, even if not preallocated, the memory could be requested as a big block from OS and then the allocators could switch to that block while shutting down.

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ...nize class
Next Topic: Value: String to int - problem or feature?
Goto Forum:
  


Current Time: Mon Sep 14 08:14:58 GMT+2 2026

Total time taken to generate the page: 0.00902 seconds