Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » How to respond when memory is exceeded
Re: How to respond when memory is exceeded [message #61098 is a reply to message #61097] Mon, 18 November 2024 08:17 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
For my part, I have tried to modify the code so that in this situation an exception is thrown, and the behaviour has been excellent.

It is sad that in the old days you could check if a malloc() returned null, but now you are forced to close the program.

Mirek, with a very small change you will give the programmer a choice.


Best regards
IƱaki
 
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: NoMemoryLeaksCheck undefined symbol
Next Topic: Doubt with Buffer<> of a trivially destructible type
Goto Forum:
  


Current Time: Tue Jul 08 08:57:34 CEST 2025

Total time taken to generate the page: 0.03664 seconds