[Defconapi] Two bugs make the game crash

jl602 at student.cs.york.ac.uk jl602 at student.cs.york.ac.uk
Sun Jun 21 04:22:58 CDT 2009


Hi guys

I'm now working on the AI with C++ and I've got two problems which could
make the game crash ( dll file has been loaded) :

1. The game will crash if switch the debug mode from NO to YES at the hall
window. To avoid this, I start the game by command line and type 'DEFCON
debug', then it's ok and no bug occurs. ( the AI is coded in RELEASE and
the dll file is put in the right place.)

2. If the code contains Sleep() function, the game crashed when the DEFCON
5 begins. ( The cursor can't be moved and the game totally halt).

The IDE is Visual Studio 2008 and my OS is Vista.

Anyone know how it happens or has some similar problems?


Many thanks

Jieming Liu






More information about the Defconapi mailing list