From ddbcf719d27fc810287b2ef43dd10280054747a5 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 21 Jul 2021 14:16:21 +0000 Subject: [PATCH] =?UTF-8?q?B2021-071:=20ROEditor=20=E2=80=93=20Change=20fi?= =?UTF-8?q?eld=20name=20causes=20hang=20and=20crash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LibSource/RODBInterface/RODBInterface.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs b/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs index 0317c0b2..4675bb98 100644 --- a/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs +++ b/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs @@ -1796,6 +1796,7 @@ namespace RODBInterface MyRecID = RecID; string AccPageID = DBE.GetString(2); string Info = DBE.GetString(3); + Info = Info.Replace("&apos", "\'"); // B2021-071: crash when getting/saving field names node.SetAttribute("HasChild", "True"); // Store data in the VlnXmlElement as a subgroup @@ -2458,6 +2459,7 @@ namespace RODBInterface info = null; DBE.ReaderClose(); DBE.CommandDispose(); + if (info != null) info = info.Replace("\'", "&apos"); // B2021-071: crash when getting/saving field names if (combofield == false) { tinfo1 = info.Replace(onameOpen, nnameOpen); @@ -2598,8 +2600,9 @@ namespace RODBInterface // Update subelements too. if (success == true) success = RODB_UpdateFieldNames(topgroup, recid, oldname, newname, editlevel, false, StatMsgWindow, combofield); - topgroup = (VlnXmlElement)topgroup.NextSibling; + //topgroup = (VlnXmlElement)topgroup.NextSibling; } + topgroup = (VlnXmlElement)topgroup.NextSibling; // B2021-071: infinite loop (moved this from above loop } StatMsgWindow.Dispose(); }