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 » Out of memory panic
Re: Out of memory panic [message #36325 is a reply to message #36321] Sun, 20 May 2012 17:13 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
koldo wrote on Sun, 20 May 2012 10:38

Hello all

I am almost agree with all the opinions. This situation is not usual. However it is very possible In my situation it is a program that manages huge amounts of data.

Now if a lack of memory is detected, a message is shown and program is ended. This is U++ internal and out of programmer control.

I think it would be great if U++ would let the programmer to choose what to do. The default solution is OK but maybe important data is lost or safety would be at risk if program is controlling devices.

I think that U++ would have to let the programmer to gracefully end if any unexpected situation would happen. And sometimes unexpected things happen. Exceptions are a good way to catch this situations.


Well, if adding "OutOfMemoryHandler" function would statisfy you, I have no problem adding it.

However, please notice that you can do very little in such handler.... You e.g. cannot even call Exclamation to report the issue...
 
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: Thu May 16 15:29:23 CEST 2024

Total time taken to generate the page: 0.01327 seconds