From c2a5a8ec7dc98c73280a6a9542d4b6c05cb4583c Mon Sep 17 00:00:00 2001 From: mschill Date: Thu, 12 Mar 2026 14:35:32 -0400 Subject: [PATCH] Revert Clipboard B2025-064 --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 06f8474e..1b3ec4c0 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -1668,20 +1668,8 @@ namespace Volian.Controls.Library } Clipboard.Clear(); - //Try to update the data object to persist beyond PROMS life - //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 - } - } + Clipboard.SetDataObject(myDO); // this saves the cleaned up information to the Windows clipboard + } iData = Clipboard.GetDataObject(); bool noEquationData = true; // part of bug B2017-117 we were running out of window handles when printing, found this similar use of