I didn't have a number after -keepAlive (for some reason this didn't cause an error - ?). So I tried "-keepAlive 3" - and it worked! In fact it stayed online all day and was still alive when I checked it this evening. So thanks for the fix!
--Jon
xboard issue
Moderator: Ras
-
- Posts: 4402
- Joined: Fri Mar 10, 2006 5:23 am
- Location: http://www.arasanchess.org
-
- Posts: 28356
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: xboard issue
This is indeed weird, and error-prone. WinBoard does not check the validity of its option values at all. The generic parser passes them as a string to the code that sets the option values. When the argument is supposed to be in int, it just grinds it through atoi(), without checking if there are any digits in there at all.
Only when -eepAlive without arguments was the last option, it drew a complaint. Otherwise it jsjut eats the following option as argument. And if that was an option without arguments, you are in sync again to tread the rest.
I guess this should be considered a bug!
Only when -eepAlive without arguments was the last option, it drew a complaint. Otherwise it jsjut eats the following option as argument. And if that was an option without arguments, you are in sync again to tread the rest.
I guess this should be considered a bug!