Powertoys Run calculator result copy to clipboard fails #35944
Labels
Issue-Bug
Something isn't working
Needs-Triage
For issues raised to be triaged and prioritized by internal Microsoft teams
Microsoft PowerToys version
0.86.0
Installation method
GitHub, PowerToys auto-update
Running as admin
No
Area(s) with issue?
PowerToys Run
Steps to reproduce
Doing any math operation and attempting to copy in run triggers the error, but other uses copy to the clipboard just fine.
PowerToysReport_2024-11-14-14-23-49.zip
✔️ Expected Behavior
The run window to hide and result stored in clipboard
❌ Actual Behavior
Dialog opens:
Copy Failed, please try again later
OpenClipboard Failed (0x800401D0 (CLIPBRD_E_CANT_OPEN))
In Run Log:
-------------------------- Begin exception --------------------------
Message: Copy failed
Exception full name : System.Runtime.InteropServices.COMException
Exception message : OpenClipboard Failed (0x800401D0 (CLIPBRD_E_CANT_OPEN))
Exception stack trace:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
at System.Windows.Clipboard.Flush()
at Microsoft.PowerToys.Run.Plugin.Calculator.ResultHelper.<>c__DisplayClass2_0.b__0()
Exception source : System.Private.CoreLib
Exception target site: Void ThrowExceptionForHR(Int32, IntPtr)
Exception HResult : -2147221040
-------------------------- End exception --------------------------
Other Software
Edition Windows 10 Home
Version 22H2
Installed on 11/20/2021
OS build 19045.5131
Experience Windows Feature Experience Pack 1000.19060.1000.0
I also found this neat thread from stack overflow:
https://stackoverflow.com/questions/68666/clipbrd-e-cant-open-error-when-setting-the-clipboard-from-net
The text was updated successfully, but these errors were encountered: