Friday, July 17, 2009

Crash Bug!

I've found a bad crash bug just immediately after the Big Gun map, when you switch from the intermission (cheesy big bare room with lots of explosions going off in it) to the cinematic for the next unit. Just on the brink of releasing too. :(

Anyway, it's to do with Zone memory allocation, and - specifically - freeing. So far I've moved everything out of the Zone aside from gamex86 stuff, and have switched the Zone code back to C, suspecting that there may be an incompatibility between the game C code and the engine C++ code. If I comment out the free call it works fine, of course, but I'm leaking memory by doing that.

So I need to pay a serious visit to this code, bringing up a gamex86.dll in debug mode, and see what's going on. I suspect that I'm going to have to do some serious rewriting of it (I don't like this code anyway - lots of tiny allocations, and the struct that manages them is bigger than most of the malloc sizes).

Anyway, release is off now. Sorry.

1 comments:

xaGe said...

..Tis better to put off a release with know bugs you can fix then to release it with them. There's no deadline...