Memory problem? [solved]

Hi guys
I hope someone can help me with the following issue. I created a project with Qt creator which builds perfectly but after launching the program unexpectely quits with a segmentation fault. I guess this is a problem related with memory. I use very large array of maps in the following variable:

If I try to reduce the dimensions of those arrays I get the program regularly launched and perfectly working. It is quite strange since the program worked smoothly before implementing the GUI in Qt.
Do you have any idea on what could be the problem?
If it is a memory problem I could use the "new" statement. I did this before for very large arrays.
The first variable could be declared like:

You are creating big arrays on the stack, which is also used by the other libraries you are using (including Qt) and it size is limited. Since you're using quiet a lot of memory with your data, you should allocate them on the heap, or even better, use Qt's container classes.

Have a look at QMap and QVector, you can combine them to have your two dimensional maps.