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 #36331 is a reply to message #36327] Sun, 20 May 2012 20:15 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello all

In my case I have got the problem when trying to add too many rows to a GridCtrl. With matrices an vectors there is no problem because some return NULL and other throw a bad_alloc if size is too big.

Quote:

Well, if adding "OutOfMemoryHandler" function would satisfy 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...
Thanks Mirek. That solution sounds nice. However I do not know why an Exclamation does not work (I know it because I tried it freeing memory before ...).

Quote:

I guess that the best would be to add a trigger with an user-settable memory level.
Hello Massimo. You are in fact adding a OutOfMemoryHandler too. However I prefer the programmer and the user to use as much memory as it is available.


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
Read Message
Previous Topic: ...nize class
Next Topic: Value: String to int - problem or feature?
Goto Forum:
  


Current Time: Thu May 16 16:50:24 CEST 2024

Total time taken to generate the page: 0.02368 seconds