I kept getting an "application error" box popup as I was playing with the database games panels. Could not replicate reliably but I think I have it now
It seems to happen when a highlighted game disappears from view after some transition and returning to the games list view; for example toggle scroll bars from vertical to horizontal
Here are a few examples
When the window gets redrawn for the new scroll bar, there is no room to show the highlighted game (it is now offscreen) and an error is emitted when trying to change the background of the selected game
The same effect can occur when transitioning from players or events or sites back to Games; although this might seem unlikely user behaviour I've got a better example to come
Better example
Same thing happens when passing between database and game displays if the windows is adjusted while on the game display
In fact it happens anytime when the window is reduced to excluded the highlighted game
Many thanks for your detailed description, luckely this problem alwasy occurs at the same place. Bug is fixed, please wait for revision #1001, I'm still testing.