You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on really huge images (eg 10000 * 50000) the program is not capable of allocating memory in cImage::AllocMem.
But instead of throwing an badalloc error in any way, the program crashes.
It would be good to have a way of reading available memory, checking against GetUsedMB, and then throwing error / allocation. (could still fail, but better than nothing)
There is neither a builtin way for c++ to do that, nor for qt. So we would be forced to use some hackish platform dependent code like: http://stackoverflow.com/questions/8122277/getting-memory-information-with-qt?answertab=votes#tab-top
Or we could try to use some other allocating method, to prevent the rest of the program to crash.
Opinions appreciated :)
The text was updated successfully, but these errors were encountered:
on really huge images (eg 10000 * 50000) the program is not capable of allocating memory in cImage::AllocMem.
But instead of throwing an badalloc error in any way, the program crashes.
It would be good to have a way of reading available memory, checking against GetUsedMB, and then throwing error / allocation. (could still fail, but better than nothing)
There is neither a builtin way for c++ to do that, nor for qt. So we would be forced to use some hackish platform dependent code like:
http://stackoverflow.com/questions/8122277/getting-memory-information-with-qt?answertab=votes#tab-top
Or we could try to use some other allocating method, to prevent the rest of the program to crash.
Opinions appreciated :)
The text was updated successfully, but these errors were encountered: