bogui crashes sometimes when closing the server window
Status: Beta
Brought to you by:
j_aroche
bogui crashes from time to time with an access
violation error when trying to close the server window.
The error is coming from the first line that follow:
if ( !ctx->bSyncSvr )
api->pShowWindow( hDlg, SW_HIDE );
else
api->pDestroyWindow( hDlg );
This bug is easily fixed as follows:
// if not connected
else
{
if ( !ctx->bSyncSvr )
api->pShowWindow( hDlg, SW_HIDE );
else
api->pDestroyWindow( hDlg );
}
If the server is connected, it hides/destroys the
window a few lines up and then tries again here. This
should only be executed when it's not connected it appears.
Updated file for bogui to fix the bug.