B2024-006 - Improved memory management when performing the Refresh Transitions Amin Tool by encasing the getting of content information in Using statements. Same change was done for the method used by the Update RO Values Amin tool.
This commit is contained in:
parent
a132d3de22
commit
afad3365bd
@ -665,11 +665,13 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
TranFixCount++;
|
||||
itemInfo.MyContent.FixTransitionText(traninfo, itemInfo, "Reason for Change: Transition to Non-Editable Step");
|
||||
Content content = Content.Get(itemInfo.MyContent.ContentID);
|
||||
using (Content content = Content.Get(itemInfo.MyContent.ContentID)) //B2024-006 free up content memory when done
|
||||
{
|
||||
content.FixTransitionText(traninfo, true);
|
||||
content.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!forceConvertToText)
|
||||
{
|
||||
@ -682,13 +684,15 @@ namespace VEPROMS.CSLA.Library
|
||||
forceConvertToText = true;
|
||||
TranFixCount++;
|
||||
itemInfo.MyContent.FixTransitionText(traninfo, itemInfo, "Reason for Change: Transition to External Procedure using Internal Format");
|
||||
Content content = Content.Get(itemInfo.MyContent.ContentID);
|
||||
using (Content content = Content.Get(itemInfo.MyContent.ContentID)) //B2024-006 free up content memory when done
|
||||
{
|
||||
content.FixTransitionText(traninfo, true);
|
||||
content.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!forceConvertToText)
|
||||
{
|
||||
@ -701,13 +705,15 @@ namespace VEPROMS.CSLA.Library
|
||||
forceConvertToText = true;
|
||||
TranFixCount++;
|
||||
itemInfo.MyContent.FixTransitionText(traninfo, itemInfo, "Reason for Change: Transition to Outside Procedure using Internal Format");
|
||||
Content content = Content.Get(itemInfo.MyContent.ContentID);
|
||||
using (Content content = Content.Get(itemInfo.MyContent.ContentID)) //B2024-006 free up content memory when done
|
||||
{
|
||||
content.FixTransitionText(traninfo, true);
|
||||
content.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!forceConvertToText)
|
||||
{
|
||||
@ -719,7 +725,8 @@ namespace VEPROMS.CSLA.Library
|
||||
if (newText != oldText || newValue == "?")
|
||||
{
|
||||
TranFixCount++;
|
||||
Content content = Content.Get(itemInfo.MyContent.ContentID);
|
||||
using (Content content = Content.Get(itemInfo.MyContent.ContentID)) //B2024-006 free up content memory when done
|
||||
{
|
||||
content.FixTransitionText(traninfo);
|
||||
content.Save();
|
||||
}
|
||||
@ -727,6 +734,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// // B2018-002 - Invalid Transitions - Method to check for invalid transitions and convert them to text
|
||||
public static bool ConvertInvalidTransitionsToText(ItemInfo itemInfo)
|
||||
@ -966,7 +974,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
//ShowDifference(oldText, newText); // debug - display in Visual Studio Output window
|
||||
ROFixCount++;
|
||||
Content content = Content.Get(itemInfo.MyContent.ContentID);
|
||||
using (Content content = Content.Get(itemInfo.MyContent.ContentID)) //B2024-006 free up content memory when done
|
||||
{
|
||||
if (roval == "?")
|
||||
{
|
||||
oldText = content.ConvertROToText(rousage, roval, roch.type, origROFst);
|
||||
@ -989,6 +998,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//C2022-028 check the RO link text - compare with RO Usage information, annotate RO links that are bad
|
||||
internal static void MyCheckROLinks(ItemInfo itemInfo)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user