Menu

#1 UB hand history fetching stops

open
nobody
None
5
2005-10-23
2005-10-23
No

Sometimes GameTime+ stops fetching hand histories from
all open UltimateBet hand history windows. This often
happens when I open a third UltimateBet table.
Restarting GameTime+ sometimes fixes it.

Running the latest code (1.4.7) from CVS in the
debugger, I get an assert in
HistoryWindow::_requestThreadProc() due to SetEvent()
failing. This causes the HistoryMgr thread to get stuck
in the WaitForSingleObject() call.

I put some debugging code in there and it turns out
pHistoryWin->_hMessagePumpActiveEvent is 0xcdcdcdcd at
the time of the SetEvent() call when the assert occurs.

I believe the fix is to move the CreateEvent() call in
HistoryWindow::HistoryWindow() to before the
CreateThread() call. It's a race condition as it is now
(SetEvent() can get called before CreateEvent()).

Discussion


Log in to post a comment.

MongoDB Logo MongoDB