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  |
 |
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
|
|
|
 |
|
How to respond when memory is exceeded
By: koldo on Wed, 16 October 2024 09:41
|
 |
|
Re: How to respond when memory is exceeded
By: Lance on Wed, 16 October 2024 15:27
|
 |
|
Re: How to respond when memory is exceeded
By: koldo on Wed, 16 October 2024 16:18
|
 |
|
Re: How to respond when memory is exceeded
By: Lance on Wed, 16 October 2024 17:22
|
 |
|
Re: How to respond when memory is exceeded
By: mirek on Sun, 17 November 2024 16:07
|
 |
|
Re: How to respond when memory is exceeded
By: Lance on Mon, 18 November 2024 05:24
|
 |
|
Re: How to respond when memory is exceeded
By: mirek on Mon, 18 November 2024 08:01
|
 |
|
Re: How to respond when memory is exceeded
By: koldo on Mon, 18 November 2024 08:17
|
 |
|
Re: How to respond when memory is exceeded
By: mirek on Mon, 18 November 2024 08:39
|
 |
|
Re: How to respond when memory is exceeded
By: koldo on Mon, 18 November 2024 10:09
|
 |
|
Re: How to respond when memory is exceeded
By: mirek on Mon, 18 November 2024 12:31
|
 |
|
Re: How to respond when memory is exceeded
By: Lance on Mon, 18 November 2024 16:15
|
 |
|
Re: How to respond when memory is exceeded
By: koldo on Mon, 18 November 2024 19:36
|
 |
|
Re: How to respond when memory is exceeded
By: mirek on Mon, 18 November 2024 19:48
|
 |
|
Re: How to respond when memory is exceeded
By: koldo on Mon, 18 November 2024 20:01
|
 |
|
Re: How to respond when memory is exceeded
By: mirek on Tue, 19 November 2024 12:14
|
Goto Forum:
Current Time: Sat Mar 22 17:24:55 CET 2025
Total time taken to generate the page: 0.03761 seconds
|