コード例 #1
0
        private void RunWorker()
        {
            _currentDispatcher = this;

            for (;;)
            {
                try {}
                catch (Exception e)
                {
                    if (UnhandledExceptionFilter != null)
                    {
                        DispatcherUnhandledExceptionFilterEventArgs args = new DispatcherUnhandledExceptionFilterEventArgs(this, e);

                        if (UnhandledException != null && args.RequestCatch == false)
                        {
                            UnhandledException(this, new DispatcherUnhandledExceptionEventArgs(this, e));
                        }
                    }
                }
            }

//			_currentDispatcher = null;
        }
コード例 #2
0
ファイル: Dispatcher.cs プロジェクト: arangas/MediaPortal-1
    private void RunWorker()
    {
      _currentDispatcher = this;

      for (;;)
      {
        try {}
        catch (Exception e)
        {
          if (UnhandledExceptionFilter != null)
          {
            DispatcherUnhandledExceptionFilterEventArgs args = new DispatcherUnhandledExceptionFilterEventArgs(this, e);

            if (UnhandledException != null && args.RequestCatch == false)
            {
              UnhandledException(this, new DispatcherUnhandledExceptionEventArgs(this, e));
            }
          }
        }
      }

//			_currentDispatcher = null;
    }