logic to save word sections with resolved RO values for exporting the approved procedure
Better memory management and commented out debug statements to help evaluate memory usage
This commit is contained in:
@@ -607,16 +607,23 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new System.Security.SecurityException("User not authorized to update a Pdf");
|
||||
try
|
||||
{
|
||||
BuildRefreshList();
|
||||
Pdf pdf = base.Save();
|
||||
RemoveFromDictionaries(); // if save is successful remove the previous Folder from the cache
|
||||
AddToCache(pdf);//Refresh the item in AllList
|
||||
ProcessRefreshList();
|
||||
BuildRefreshList();
|
||||
Pdf pdf = base.Save();
|
||||
RemoveFromDictionaries(); // if save is successful remove the previous Folder from the cache
|
||||
AddToCache(pdf);//Refresh the item in AllList
|
||||
ProcessRefreshList();
|
||||
return pdf;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new DbCslaException("Error on CSLA Save", ex);
|
||||
if (MSWordToPDF.DocReplace != null) // if creating an Approved export then ignore the error
|
||||
{
|
||||
_MyLog.WarnFormat("here");
|
||||
GC.Collect(); // memory garbage collection
|
||||
return this;
|
||||
}
|
||||
else
|
||||
throw new DbCslaException("Error on CSLA Save", ex);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user