When I execute my program it doesn't terminate. I haven't changed anything and it has been working before. There is clearly something wrong but I don't understand what and why.
In the screenshot you can see the line
for ( size_t n = 0; n <= (size_t)maxState; n++ ) nodes.push_back(nullptr);
You can also see that maxState
is -1, so (size_t)maxState
should be 0. On the right side of the image you can see the values for n and the size of the nodes
vector.
I've taken the screenshot after pausing execution. When I resume it doesn't terminate. I've read some things about heap corruption, but without working solutions. Also I'm not sure if heap corruption is the real cause for this strange effect.
I already tried to clean and rebuild.