When printing from the command line, the program remains in memory for a very long time after it is done executing. It appears to be associated with garbage collection. I added code so that the process will be killed immediately after the window is closed. This fixes bug B2012-261.
Remove unnecessary line.
This commit is contained in:
parent
05713fc653
commit
ca1c51f5df
@ -484,6 +484,8 @@ namespace VEPROMS
|
||||
Settings.Default.QATItems = ribbonControl1.QatLayout;
|
||||
SaveMRU();
|
||||
//Settings.Default.Save();
|
||||
Volian.Base.Library.DebugPagination.Close();
|
||||
Volian.Base.Library.DebugText.Close();
|
||||
}
|
||||
private void frmVEPROMS_Load(object sender, EventArgs e)
|
||||
{
|
||||
@ -602,9 +604,11 @@ namespace VEPROMS
|
||||
}
|
||||
if (ranAuto)
|
||||
{
|
||||
Volian.Base.Library.DebugPagination.Close();
|
||||
Volian.Base.Library.DebugText.Close();
|
||||
this.Close();
|
||||
// Something was causing the process to remain in memory for an extended period of time
|
||||
// after printing procedures. The following lines kills the process immediately.
|
||||
System.Diagnostics.Process myProc = System.Diagnostics.Process.GetCurrentProcess();
|
||||
myProc.Kill();
|
||||
}
|
||||
}
|
||||
private bool _RunNext = false;
|
||||
|
@ -1965,7 +1965,6 @@ namespace Volian.Controls.Library
|
||||
while (tpdlg.Visible)
|
||||
{
|
||||
Application.DoEvents();
|
||||
System.Threading.Thread.Sleep(0);
|
||||
}
|
||||
if (dr != DialogResult.Cancel) //!tpdlg.Cancel)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user