Quantcast
Channel: Civilization Fanatics' Forums
Viewing all articles
Browse latest Browse all 12856

Debugging practices

$
0
0
I've run into an apparently random crash bug - it's completely inconsistent when it happens, sometimes it takes 20 turns, sometimes it takes 1.

It always happens, eventually. I don't know how to debug it.

It's *probably* happening in my C++ code. I've been over it extensively and completely rewritten the portions that changed between the previous (stable) build and this (unstable) one - I don't see any errors.

I have attached Visual C++ 2008 to the Civ process and watched it step through breakpoints, and it's ended at a different breakpoint each time - in wildly different classes, often enough, though often in the one I've been working on. Once, it pointed outside the CvGameCoreDLL.

I'm at my wits end here - I simply don't know how to figure out what's going on.

Viewing all articles
Browse latest Browse all 12856

Trending Articles