Merge pull request 'B2026-032 Revert Clipboard B2025-064' (#734) from Revert-Clipboard-B2025-064 into Development

Reviewed-on: #734
Reviewed-by: John Jenko <jjenko@volian.com>
This commit was merged in pull request #734.
This commit is contained in:
2026-03-12 14:49:45 -04:00

View File

@@ -1668,20 +1668,8 @@ namespace Volian.Controls.Library
} }
Clipboard.Clear(); Clipboard.Clear();
//Try to update the data object to persist beyond PROMS life Clipboard.SetDataObject(myDO); // this saves the cleaned up information to the Windows clipboard
//if can't, log it and use old method of scoping clipboard to PROMS life }
try
{
// noticed that sometimes the clipboard will get stuck - so set it to retry twice
// and if it fails, scope the clipboard to within PROMS
Clipboard.SetDataObject(myDO, true, 2, 100); // this saves the cleaned up information to the Windows clipboard
}
catch (System.Runtime.InteropServices.ExternalException ex)
{
_MyLog.Warn($"Error Setting Clipboard Object to Persist beyond PROMS. Clipboard will be scoped to PROMS. Error:{ex.Message}");
Clipboard.SetDataObject(myDO); // this saves the cleaned up information to the Windows clipboard
}
}
iData = Clipboard.GetDataObject(); iData = Clipboard.GetDataObject();
bool noEquationData = true; bool noEquationData = true;
// part of bug B2017-117 we were running out of window handles when printing, found this similar use of // part of bug B2017-117 we were running out of window handles when printing, found this similar use of