]> source.dussan.org Git - tigervnc.git/commitdiff
Terminate the session playback if the exception was cathed while the
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Thu, 10 Mar 2005 18:18:34 +0000 (18:18 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Thu, 10 Mar 2005 18:18:34 +0000 (18:18 +0000)
rfb data was reading.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@242 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfbplayer/rfbplayer.cxx

index d1adc55d227f1265608b55e05aac1ecf117c9941..81fc7c2b14f1cd44923d501373cda504ab42ef08 100644 (file)
@@ -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;
     }
   }