From 7a21644ff84514923480aa9f8ce0a8c4e8c91c1e Mon Sep 17 00:00:00 2001 From: John Date: Thu, 6 Jan 2022 17:52:18 +0000 Subject: [PATCH] =?UTF-8?q?B2022-001=20=E2=80=93=20fixed=20an=20out=20of?= =?UTF-8?q?=20memory=20crash=20when=20you=20print=20more=20than=20one=20ch?= =?UTF-8?q?ild=20procedure=20from=20the=20same=20parent=20procedure=20in?= =?UTF-8?q?=20the=20same=20PROMS=20session.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs index 7d2c0a78..71ab98d2 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs @@ -179,7 +179,10 @@ namespace VEPROMS.CSLA.Library //string key = string.Format("{0}.{1}",dvi.DocVersionAssociations[0].ROFstID,dvi.DocVersionConfig.SelectedSlave); string key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex, dvi.DocVersionConfig.SelectedSlave); if (!dicLookups.ContainsKey(key)) + { + dicLookups.Clear(); //B2022-001 clear the dictionary each time to free up memory - out of memory fix dicLookups.Add(key, new ROFSTLookup(this, dvi)); + } return dicLookups[key]; } #endregion