eboard-devel

I want your opinion about a new feature: filtering out some types of games
from the PGN auto-save feature.
There are 2 (...and a half) ways to go here:
a) Write a GUI to choose filters (game variant / time control)
b) Save each kind of game (lightning, blitz, standard, crazyhouse,
suicide ...) to a separate PGN file.
b.1) preferences dialog stays as it is currently, and a letter
would be appended to the filename to indicate the type
of game, e.g.: mygames-l.pgn, mygames-b.pgn, mygames-z.pgn.
b.2) user chooses file names one by one for every single little
variant.
On another note, there's a meory leak in eboard, when you load a PGN file,
then discards the games, most memory is not freed. I tried to address
this in 0.3.5 but it still doesn't free all memory.
Either the lost memory is being allocated during PGN load or on game
storage.
Potential classes where the bug can be are ChessGame (chess.cc),
PGN-related classes (chess.cc) or Position (position.cc).
My major suspects are in the PGN-loading function (LoadPGN) and the C++
strings that make up the PGN headers. I'd be happy if someone could take a
look and help me spot the bug. In 0.3.5, ChessGame::~ChessGame is being
called for all games (I checked) but that isn't doing the trick.
.........................................................................
Felipe Paulo Guazzi Bergo - Free Software Developer (bergo@...)
GPG/PGP mail welcome - GPG/PGP Key: EF8EE808 (keyserver pgp.mit.edu)
http://www.advogato.org/person/khazad - Campinas - SP - Brazil - Earth
* In C we had to code our own bugs. In C++ we can inherit them.