Can someone please look why I got this error only at 4. case... I'm sure that I didn't exceed the memory limit (16MB), because the field is max 1,000,000 tiles big...
Yes, but think, there are just 1,000,000 fields (maximum, because there are also fences)... If every call consumes one 32 bit reference, and 3 32 bit longs, then we are there about 16MB. .. However, i tried changing longs to shorts, but no success...
Now, I've updated my function, so that it holds only two shorts (2x16 bit), and one long (32 bit)... So my program should use at most 8MB for function calls, and about 2 MB for table.... Can someone explain why is 2+8>16? Can someone refer me to a BFS literature? http://www.z-trening.com/new/www/html/submit.php?submit=7100029399&subm_code=1