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
How to respond when memory is exceeded [message #60976] Wed, 16 October 2024 09:41 Go to previous message
koldo is currently offline  koldo
Messages: 3429
Registered: August 2008
Senior Veteran
Hi all

Now, when you want to allocate a variable that is too large, the internal function calls Panic() and aborts the program. For the programmer, it is only possible to call InstallPanicMessageBox() first, so that just before closing the program, a defined function is called.

I wanted to ask you if it would be possible that in this case, the user function decides if the program stops or not. For example, imagine a design program that wants to open a file that is too big: instead of crashing the program, the PanicMessageBox() could do a throw with a warning that the file to be opened is too big, and the program would return to the previous state.


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: Sat Mar 22 17:24:55 CET 2025

Total time taken to generate the page: 0.03761 seconds