Problem with interface

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Problem with interface

Postby Fermin Serrano » 14 Apr 2008, 21:55

I am experiencing problems with the winboard interface. When I send comands or moves to winboard, it runs ok, but when I send the principal variantion with its score and depth, no info is showed. The debug is shown a empty line and I am sure it is sended (I write it to a file just after sending to winboard with printf, and also it runs ok in Arena).

I have the unbuffered options sets:

Code: Select all
   setbuf(stdout, NULL);
   setbuf(stdin , NULL);
   setvbuf(stdout, NULL, _IONBF, 0);
   setvbuf(stdin, NULL, _IONBF, 0);


No idea of whats the problems, but I have search in the forum and it looks like some programmers had the same problem, but no solution.

Does anyone has the same problem? any ideas?
thx
FS
User avatar
Fermin Serrano
 
Posts: 72
Joined: 10 Apr 2008, 18:20
Location: Madrid (Spain)

Re: Problem with interface

Postby H.G.Muller » 14 Apr 2008, 22:17

If it is not in the winboard.debug file, you can be sure it is not sent. Are you sure you were playing with the 'Show Thinking' option turned on?
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Problem with interface

Postby Fermin Serrano » 15 Apr 2008, 07:55

I found the problem. I was sending a '\r' character which seems to deceive winboard.
Anyway, winboard would have to log both lines (the \r and pv print) , isn't it?
User avatar
Fermin Serrano
 
Posts: 72
Joined: 10 Apr 2008, 18:20
Location: Madrid (Spain)


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 40 guests