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

Home » U++ Library support » U++ Core » Out of memory panic
Out of memory panic [message #36264] Thu, 17 May 2012 12:38 Go to previous message
koldo is currently offline  koldo
Messages: 3459
Registered: August 2008
Senior Veteran
Hello all

Although U++ doc. clearly says that: "...We decided to ignore possibility of "out-of-memory" exceptions and recovery...", I would ask to do something Smile.

A possible proposal could be that OutOfMemoryPanic() function could be an user defined function. The user could decide to, for example:
- Show an out of memory message
- Free some memory kept to give breath to the program in this situation
- Save critical data if something goes wrong
- Throw an exception for the main program to handle this gracefully

Now the program just aborts without any possibility of save data processed.


Best regards
IƱaki

[Updated on: Thu, 17 May 2012 12:41]

Report message to a moderator

 
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: Sat May 30 00:42:11 GMT+2 2026

Total time taken to generate the page: 0.00548 seconds