[ggo-discussion] Re: a bug

  • From: Peter Strempel <pstrempel@xxxxxx>
  • To: ggo-discussion@xxxxxxxxxxxxx
  • Date: Wed, 17 Aug 2005 01:14:08 +0200

Jarkko Lindblad wrote:

Small bug in the Windows version, maybe addressed already?

When I look up player's stats from the board window and quickly close the board before the stats window opens, glgo crashes. Should take about one line to fix? ;)

Addressed it now, will be in 1.3.1 release. Took some more lines (but only a few more).


There was some pointer to the last window which called a playerinfo dialog, so once the stats/sgf/stored commands came back the correct parent window for the dialog would be set. Now if you close the board window quickly, the pointer would still be pointing to the old window (not NULL), but that's invalid memory now.
Now the board deregisters itself properly and resets that pointer to NULL when closing. The playerinfo dialog will still appear, but now with the IGS terminal as parent.


How to not write C++ for dummies :-)

Other related posts: