Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Winboard problem (maybe Delphi only )

Author: Steve Maughan

Date: 06:06:46 08/23/03

Go up one level in this thread


Hi Tony,

I haven't heard of this problem and I doubt it's a Delphi specific problem.

One possibility to try would be to use 'CreateThreadEx' instead of
'CreateThread'.  I know from your website that you use CreateThread in XiniX but
someone told me that this is not consols safe - I've no idea why and no more
infor thatn this.

The second thing to try would be to make sure that the read thread is
*perfectly* synced with the thinking thread.  In Monarch I had some problems
when I set a flag to change the thinking status only a few instructions before
re-entering the main 'Wait-for-instruction' loop.  Amazingly this caused
problems once in a while and I needed to set all flags the instruction before
entering the loop.  I hope that makes sense.

Regards,

Steve

PS I'm rewriting Monarch into VC - I was concerned that Borland haven't improved
the compiler since 1996.



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.