Memory allocation problem when running QT
I seem to have memory problem. When I try to allocate memory:
I do not get any problems. However, when I increase array size by 10:
the program runs but freezes. Any one has idea how to fix this problem?
Hi and welcome to devnet,
This is not a Qt specific issue. You are trying to create a table of over 8MByte on the stack which is probably too much.
Such big tables belongs to the heap. You can also use e.g. a QVector which will handle this for you.