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:
parent
bcdc190caf
commit
dcde5d1e05
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user