Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Works in win 98, crashes on xp.

Author: Andreas Herrmann

Date: 06:38:25 09/06/03

Go up one level in this thread


On September 06, 2003 at 07:39:10, Tony Werten wrote:

>On September 05, 2003 at 19:07:40, Dann Corbit wrote:
>
>>On September 05, 2003 at 18:52:20, macaroni wrote:
>>
>>>I recently had a chance to try my program out on an excellent computer (1.4 g
>>>centrino), I happily downloaded winboard, and copied my programs exe file across
>>>hoping to see the knps rocket. Instead, the program 'exited unexpectantly' for
>>>seemingly no reason. It did this whether I ran it from winboard, or on it's own
>>>(not that it works on it's own anyway). Is this standard? must I in fact compile
>>>the program on the win xp machine? I do use the function 'PeekNamedPipe' in my
>>>program. Could this be causing the problem? Thanks
>>>
>>>note that GNUchess ran perfectly (and fast)
>>
>>Probably, you have a bad memory access.  The Win9x stuff will sometimes tolerate
>>that sort of thing.  Win2k/NT/XP won't.
>>
>>Just a guess, of course.
>>
>>It's not where you compiled it.  And all the functions that work on 98 will work
>>just fine on XP (but not necessarily the other way round).
>
>Not all.
>
>Under win98 I used the winapi function _lwrite wich doesn't work correctly under
>winxp.
>
>Tony

Hi Tony,

the help says the following:

"The _lwrite function writes data to the specified file. This function is
provided for compatibility with 16-bit versions of Windows. Win32-based
applications should use the WriteFile function."

I'm just working on a Delphi component for communication between my coming GUI
and console programs (chess engines). In this component i use WriteFile and
ReadFile over a pipe to the standard IO. I havn't tryd _lwrite sofar because of
the 16 bit limitation.

My component works now very well, but i have problems, if i want to communicate
with more than one console app. It seems the read pipe or the read buffer will
be overwritten. So i will try to put this in a thread. Writing to the pipe makes
no problem.

best wishes
Andreas




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.