Mgr: Fix a rare crash bug in CTaskBarIcon::OnMouseMove()

svn path=/trunk/boinc/; revision=16026
This commit is contained in:
Charlie Fenton 2008-09-19 07:55:38 +00:00
parent ab04d935e8
commit f3e6fd50ce
2 changed files with 4 additions and 2 deletions

View File

@ -7563,8 +7563,11 @@ Charlie 19 Sep 2008
recursion and repeatedly posting the same RPC requests from
timer routines while waitung for the first one to complete, so
ignore timer events during that dialog.
Mgr: Fix a rare crash bug in CTaskBarIcon::OnMouseMove() if it is
called when exiting Manager after CmainDocument deleted.
clientgui/
BOINCBaseFrame.cpp
BOINCTaskBar.cpp
MainDocument.cpp,.h
sg_BoincSimpleGUI.cpp

View File

@ -310,8 +310,7 @@ void CTaskBarIcon::OnMouseMove(wxTaskBarIconEvent& WXUNUSED(event)) {
wxInt32 iIndex = 0;
CC_STATUS status;
wxASSERT(pDoc);
wxASSERT(wxDynamicCast(pDoc, CMainDocument));
if (!pDoc) return;
if (pDoc->IsConnected()) {
pDoc->GetConnectedComputerName(strMachineName);