Author: Tord Romstad
Date: 14:38:24 10/25/03
Go up one level in this thread
On October 25, 2003 at 11:41:16, Eiko Bleicher wrote: >Hello Tord, > >>After spending a few hours debugging, I found that the crash occurs in the >>following >>innocent-looking function: >> >>void uci_wait_for_command() { >> char command[10000]; >> >> fgets(command, 10000, stdin); >> uci_handle_command(command); } > >does this help? > > char *command = new char[10000]; > fgets(command, 10000, stdin); > uci_handle_command(command); > // ... > delete command; This is C++ code, but I could of course try the equivalent malloc and free combination. I don't see how it can make any difference compared to my code, but it will be interesting to try when I get the chance (I have no Windows computer to experiment with right now). Thanks for the suggestion! Tord
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.