User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 391,777 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,438 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser:

My program keeps crashing

Join Date: May 2008
Posts: 5
Reputation: Xyhm is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Xyhm Xyhm is offline Offline
Newbie Poster

Re: My program keeps crashing

  #3  
May 10th, 2008
Originally Posted by Duoas View Post
Can you tell us the type of pipe and the operational modes of each end?

I suspect that you have got an unstable combination and/or buffer lag.


I don't know much about the pipe since it's set up by the other program. All I do on my side is to get an output handle and create a new thread:

procedure TArena.openConnection; 
begin
   gHandleout:=getstdhandle(std_output_handle);
   createthread(nil,0,@TArena.read_winboard,nil,0,Threadid);
end;

This is what the creator of winboard (here referred to as xboard) says:

An xboard chess engine runs as a separate process from xboard itself, connected to xboard through a pair of anonymous pipes. The engine does not have to do anything special to set up these pipes. xboard sets up the pipes itself and starts the engine with one pipe as its standard input and the other as its standard output. The engine then reads commands from its standard input and writes responses to its standard output.
(link)

My problem pertains to Arena though, which is similar to Winboard but may be wired differently in regard to the pipes. Can't find any info specifically for Arena. I could ask, but I have a feeling that that knowledge shouldn't be necessary.

I got the connection code from this page. He claims the code is working and that he uses it himself.
Reply With Quote  
All times are GMT -4. The time now is 4:55 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC