B2022-025: Barakah print/merge of alarm gets out of memory error – dispose procs loaded in when resolving transition text

Added a null check
Added some aids for debugging the contentinfo cache
This commit is contained in:
2022-02-14 13:41:19 +00:00
parent bb81c62e3e
commit d4b7ea08a0
3 changed files with 65 additions and 4 deletions

View File

@@ -182,7 +182,7 @@ namespace VEPROMS.CSLA.Library
{
string key = "";
if (ovrrideChild == "")
if (ovrrideChild == null || ovrrideChild == "")
key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex, dvi.DocVersionConfig.SelectedSlave);
else
key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex, ovrrideChild); // C2021-065 use OTHER child information
@@ -191,7 +191,7 @@ namespace VEPROMS.CSLA.Library
dicLookups.Clear(); //B2022-001 clear the dictionary each time to free up memory - out of memory fix
dicLookups.Add(key, new ROFSTLookup(this, dvi));
}
if (ovrrideChild != "")
if (ovrrideChild != null && ovrrideChild != "")
dicLookups[key].OtherChild = ovrrideChild; // C2021-065 use the OTHER applicabiltiy info to get RO Values
return dicLookups[key];
}