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 #61099 is a reply to message #61098] Mon, 18 November 2024 08:39 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
koldo wrote on Mon, 18 November 2024 08:17
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.


NP, I can add something. Maybe you can add some code here so that I can check your problem and solution?
 
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 Aug 26 17:16:44 CEST 2025

Total time taken to generate the page: 0.01542 seconds