void loadHandler_OnLoadError(object sender, Chromium.Event.CfxOnLoadErrorEventArgs e)
 {
     if (e.ErrorCode == CfxErrorCode.Aborted)
     {
         FErrorTextOut[0] = e.ErrorText;
     }
 }
Esempio n. 2
0
 void loadHandler_OnLoadError(object sender, Chromium.Event.CfxOnLoadErrorEventArgs e)
 {
     if (e.ErrorCode == CfxErrorCode.Aborted)
     {
         // this seems to happen when calling LoadUrl and the browser is not yet ready
         var url   = e.FailedUrl;
         var frame = e.Frame;
         System.Threading.ThreadPool.QueueUserWorkItem((state) =>
         {
             System.Threading.Thread.Sleep(200);
             frame.LoadUrl(url);
         });
     }
 }