From 3b3a542b249190ec64fc63ff799d6c38d76e85a1 Mon Sep 17 00:00:00 2001 From: Kathy Ruffing Date: Wed, 24 Jan 2024 06:57:46 -0500 Subject: [PATCH] B2024-001: Out of memory crash on update of ROs when RO has '>' or '<' and RO in table, when done from ribbon or admin tools --- PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index cd7cd89f..656bbd98 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -1533,9 +1533,13 @@ namespace VEPROMS.CSLA.Library return myGrp; } - + // B2024-001: Loading of Ros was getting called over and over when ROs are in tables. Added + // a flag to only process once until completed, 'currentlyLoading'. + static bool currentlyLoading = false; private void Load(int rofstID) { + if (currentlyLoading) return; // B2024-001: don't load if in process of loading + currentlyLoading = true; _dicRoCounts = new Dictionary(); DateTime dtStart = DateTime.Now; @@ -1631,6 +1635,7 @@ namespace VEPROMS.CSLA.Library } catch { } } + currentlyLoading = false; // B2024-001: done loading } private void LoadChild(int rofstID, int dbiID, ROFSTLookup.rochild child) -- 2.47.2