You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fail happened while there was a VNC section. I think handling the exception be solution (and an error notification).
2022-09-07 22:34:59,469 [ 1] INFO JuliusSweetland.OptiKey.UI.ViewModels.MainViewModel: Copying text from scratchpad to clipboard.
2022-09-07 22:35:00,406 [ 1] ERROR JuliusSweetland.OptiKey.OptiKeyApp: A DispatcherUnhandledException has been encountered...
System.Runtime.InteropServices.COMException (0x800401D0): Falha de OpenClipboard (Exceção de HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN))
em System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
em System.Windows.Clipboard.Flush()
em System.Windows.Clipboard.CriticalSetDataObject(Object data, Boolean copy)
em System.Windows.Clipboard.SetDataInternal(String format, Object data)
em System.Windows.Clipboard.SetText(String text, TextDataFormat format)
em System.Windows.Clipboard.SetText(String text)
em JuliusSweetland.OptiKey.UI.ViewModels.MainViewModel.<HandleFunctionKeySelectionResult>d__66.MoveNext() na C:\dev\GitHub\OptiKey\src\JuliusSweetland.OptiKey.Core\UI\ViewModels\MainViewModel.ServiceEventHandlers.cs:linha 961
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
The code around 961 line:
caseFunctionKeys.CopyAllFromScratchpad:{
Log.Info("Copying text from scratchpad to clipboard.");stringtextFromScratchpad= KeyboardOutputService.Text;if(!string.IsNullOrEmpty(textFromScratchpad)){
Clipboard.SetText(textFromScratchpad);}}break;
The text was updated successfully, but these errors were encountered:
alexandre-mbm
changed the title
OpenClipboard fail
OpenClipboard fail crashing the OptiKey
Sep 8, 2022
This fail happened while there was a VNC section. I think handling the exception be solution (and an error notification).
The code around 961 line:
The text was updated successfully, but these errors were encountered: