The code look fine. Are you checking that zeilen or spalten are not getting any garbage values?
because if you give it a big value lets say 536870912:
_HEAP_MAXREQ / nNum >= nsize; //nsize = 8 for a double, nNum = 536870912
so the assertion will fail, this will give a value less than 8.
Last edited on
Hi,
actually spalten takes such garbage values... but I cannot figure out why....