Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Bizar Question for programmers: very strange behaviour of my engine

Author: JW de Kort

Date: 03:33:46 01/17/06

Go up one level in this thread


On January 16, 2006 at 23:12:49, J. Wesley Cleveland wrote:

>On January 16, 2006 at 16:16:13, JW de Kort wrote:
>
>>Hi all,
>>
>>In my engine i want to use the following line:
>>
>>    !(bfZwart[kol+1]&bfBoven[rij])
>>
>>In only a few cases this lines crashes my engine. If i change the +1 to any
>>other value there is no problem!
>>
>>Does anybody know were i have to look for to solve this problem? I do not
>>understand how a comparison like the above can cause a program to crash.
>
>Cam't you run your engine under a debugger ? Then a crash should interrupt the
>program at this line. Then examine the value of those variables and the cause of
>the crash should be obvious. If it is not, do a short disassembly and dump the
>registers and paste these into a new message and maybe we can help you.


I did this but the progrma crashes in another routine were is should not be at
that time anywat. And if i change +1 in the line above to any other value there
is no problem what so ever (except for a wrong evaluation of course).





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.