Sometimes WinWord is left in memory (DSOFramer). When this happens other errors can occur. This will close all existing invisible WinWords.

This commit is contained in:
Rich 2013-03-13 14:03:20 +00:00
parent bcdc190caf
commit dcde5d1e05

View File

@ -139,6 +139,9 @@ namespace VEPROMS
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
}
// If first time close any remaining WinWords. These will sometimes get hung in memory and cause problems.
if (System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName).Length == 1)
Volian.MSWord.WordDoc.KillWordApps();
// cleanup from previous run:
Volian.Base.Library.TmpFile.RemoveAllTmps();