nDataPoints and numCol are globally defined integers which get the values 120 and 13 (just so you have an idea about the size of those matrices).
So, A is not a problem, help is not a problem, but as soon as it gets to z and b there is a dialog "Out of Memory" and it stops at the line return HeapAlloc(_crtheap, 0, size ? size : 1);
I researched in the web but I could not find anything - any idea?
Note: This program debugged without any problem with same code - now I just edited the size of the matrices.
And I tried the same with another library called "Eigen" and I get the same problem - so I guess there is a problem with the heap and I have to do some kind of memory allocation...