B2021-071: ROEditor – Change field name causes hang and crash
This commit is contained in:
parent
8899967a8e
commit
ddbcf719d2
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user