Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Thanks Felipe Bergo!

Author: Scott Gasch

Date: 17:28:59 07/12/01

Go up one level in this thread


Here's an easy way to fix this:

ASSERT(iMoveNum >= 0);
ASSERT(iMoveNum < MAX_MOVE);
Movelist[iMoveNum] = whatever;

When my engine has a reproducable crash I build a debug version (where the
ASSERTS get compiled in) and 9 times out of 10 I catch the problem on an assert.

Scott



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.