Posted 19 years ago
by Ashton
-
Developer,
Schema Solutions LLC
![Avatar](https://secure.gravatar.com/avatar/8e7d0f61b46b7f003809e35f1e0ef810.jpg?s=64&d=identicon&r=g)
When I paste text into my application, on occassion, I will get the following error:
Type: System.Runtime.InteropServices.ExternalException
Message: The requested clipboard operation failed.
Source: System.Windows.Forms
Stack Trace: at System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr)
at System.Windows.Forms.Clipboard.GetDataObject()
at
ActiproSoftware.SyntaxEditor.Commands.PasteFromClipboardCommand.Execute(
EditCommandContext context)
at ActiproSoftware.SyntaxEditor.MacroRecording._1(EditCommand ,
EditCommandContext )
at ActiproSoftware.SyntaxEditor.EditorView._1(EditCommand , Boolean )
at ActiproSoftware.SyntaxEditor.SyntaxEditor._1(EditorView , Keys ,
Char , Boolean )
at ActiproSoftware.SyntaxEditor.SyntaxEditor.OnKeyDown(KeyEventArgs
e)
at CustomEditorClass.OnKeyDown(KeyEventArgs A_0)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
Is there any obvious reason why I might be getting this issue when I paste data? It looks like it is occurring where I call the base.OnKeyDown(e) method in my overriden KeyDown, but not sure what the rest of the stack trace indicates.
I am using Build 181.
Thanks,
Ashton
Type: System.Runtime.InteropServices.ExternalException
Message: The requested clipboard operation failed.
Source: System.Windows.Forms
Stack Trace: at System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr)
at System.Windows.Forms.Clipboard.GetDataObject()
at
ActiproSoftware.SyntaxEditor.Commands.PasteFromClipboardCommand.Execute(
EditCommandContext context)
at ActiproSoftware.SyntaxEditor.MacroRecording._1(EditCommand ,
EditCommandContext )
at ActiproSoftware.SyntaxEditor.EditorView._1(EditCommand , Boolean )
at ActiproSoftware.SyntaxEditor.SyntaxEditor._1(EditorView , Keys ,
Char , Boolean )
at ActiproSoftware.SyntaxEditor.SyntaxEditor.OnKeyDown(KeyEventArgs
e)
at CustomEditorClass.OnKeyDown(KeyEventArgs A_0)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
Is there any obvious reason why I might be getting this issue when I paste data? It looks like it is occurring where I call the base.OnKeyDown(e) method in my overriden KeyDown, but not sure what the rest of the stack trace indicates.
I am using Build 181.
Thanks,
Ashton