From: george82 Date: Thu, 10 Mar 2005 18:18:34 +0000 (+0000) Subject: Terminate the session playback if the exception was cathed while the X-Git-Tag: v0.0.90~384^2~593 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0e980ccd07c3ea1f2ed3a97751332569e338d461;p=tigervnc.git Terminate the session playback if the exception was cathed while the rfb data was reading. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@242 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx index d1adc55d..81fc7c2b 100644 --- a/rfbplayer/rfbplayer.cxx +++ b/rfbplayer/rfbplayer.cxx @@ -847,7 +847,14 @@ void RfbPlayer::processMsg() { sessionTerminateThread *terminate = new sessionTerminateThread(this); terminate->start(); } else { - MessageBox(getMainHandle(), e.str(), e.type(), MB_OK | MB_ICONERROR); + // Show the exception message and close the session playback + is->pausePlayback(); + char message[256] = "\0"; + strcat(message, e.str()); + strcat(message, "\nMaybe you force wrong the pixel format for this session"); + MessageBox(getMainHandle(), message, e.type(), MB_OK | MB_ICONERROR); + sessionTerminateThread *terminate = new sessionTerminateThread(this); + terminate->start(); return; } }