Author: Eric Oldre
Date: 19:00:05 12/19/04
I'm trying to write a C# program that will mimic the behavior of winboard. when
using the engine hoplite, it is crashing on the protover 2 command.
Perhaps I can chalk it up to some odd behavior/bug in hoplite. But since it
doesn't crash when I use Winboard I know that I'm not following the behavior
correctly.
From the winboard debug files it looks like its passing in both the xboard and
winboard commands at the same time. I've tried all of the following and haven't
been able to pass it the protover command without it crashing.
Any ideas?
ProcessStartInfo ps = new
ProcessStartInfo(@"C:\chess\eng\hoplite\hoplite.exe","");
ps.UseShellExecute = false;
ps.RedirectStandardOutput = true;
ps.RedirectStandardInput = true;
ps.RedirectStandardError = true;
EngProcess = new Process();
EngProcess.StartInfo = ps;
EngProcess.Start();
// i don't run all of the following at the same time, uncommented just for
illustration.
// causes hoplite to crash
EngProcess.StandardInput.WriteLine("xboard");
EngProcess.StandardInput.WriteLine("protover 2");
// causes hoplite to crash
EngProcess.StandardInput.WriteLine("xboard \r\n protover 2");
// causes hoplite to crash
EngProcess.StandardInput.WriteLine("xboard \r protover 2");
// causes hoplite to crash
EngProcess.StandardInput.WriteLine("xboard \n protover 2");
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.