B2017-084: Fix hang when closing PROMS with Word doc open & open/close of RO Editor

B2017-084: Fix hang when closing PROMS with Word doc open & open/close of RO Editor.
This commit is contained in:
2017-05-18 14:13:23 +00:00
parent ab44a78d9e
commit 5ea29fbc74
3 changed files with 18 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ namespace Volian.Controls.Library
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
ShuttingDown = true;
// Cleanup Bars
if (dotNetBarManager1.Bars != null)
foreach (DevComponents.DotNetBar.Bar myBar in dotNetBarManager1.Bars)

View File

@@ -696,8 +696,16 @@ namespace Volian.Controls.Library
get { return _PnlCaret; }
}
private static int trackerSC = 0;
private bool _ShuttingDown = false;
public bool ShuttingDown
{
get { return _ShuttingDown; }
set { _ShuttingDown = value; }
}
public void ShowCaret()
{
if (_ShuttingDown) return;
if (_MyStepRTB != null)
{
if (_MyEditItem.RTBLastFocus)