public void InvokeBrowser(o2Mate.DisplayElement de, System.Windows.Forms.WebBrowser web) { try { this.buffer.Enqueue(de); if (System.Threading.Monitor.TryEnter(web)) { web.Invoke(this.display, web); System.Threading.Monitor.Exit(web); } } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); } }