Duplicate of memory allocation problem in 2d array. Thread closed.