This is piece of some code Im writing, however Im don't have much expierience with dynamic memory allocation. There are 2 2D array allocations in this code and for some reason it crashes when hashtable is about to get allocated.
Can someone please explain to me why is it happening and how to make it work? It cannot be because of lack of memory because 'pocVlociek', an integer that basicly sets how large will allocation be ranges only from 2 to 5. Thanks
Thanks, I can't believe that I put bool there instead of int. I have wasted more than a hour because of typo...
Also I didn't use regular 2D arrays because size of pocVlociek is gonna change when I switch input files. Then it could be caused by lack of memory however input file that Im using now has this variable only this small.