コード例 #1
0
ファイル: VirtualMachine.cs プロジェクト: soulhez/debugger
 public void Resume()
 {
     try
     {
         vm.Resume();
     }
     catch (InvalidOperationException)
     {
         int a = 0;
         //there is some racy bug somewhere that sometimes makes the runtime complain that we are resuming while we were not suspended.
         //obviously if you dont resume, the other 95% of the cases, you hang because we were suspended.
     }
 }
コード例 #2
0
 public void SafeResume()
 {
     Trace("SafeResume");
     _vmSuspended = false;
     WithErrorLogging(() => _vm.Resume());
 }