We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

copy and paste exceptions

I've been noticing a few random copy and paste crashes lately with the edit control. I've done tweaking of any cut and paste functionality. Here is the stack trace:

any ideas?

System.Runtime.InteropServices.ExternalException was unhandled
Message="Requested Clipboard operation did not succeed."
Source="Syncfusion.Edit.Windows"
ErrorCode=-2147221040
StackTrace:
at Syncfusion.Windows.Forms.Edit.StreamEditControl.Copy()
at Syncfusion.Shared.Utils.KeyBinding.Implementation.KeyCommandImpl.Execute()
at Syncfusion.Shared.Utils.KeyBinding.Implementation.KeyProcessor.KeyCommandListBinderImpl.ProcessKey(Keys key)
at Syncfusion.Shared.Utils.KeyBinding.Implementation.KeyProcessor.ProcessKey(Keys key)
at Syncfusion.Windows.Forms.Edit.StreamEditControl.OnKeyDown(KeyEventArgs e)
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 Syncfusion.Windows.Forms.Edit.ScrollControl.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Edit.IntelliScrollableControl.WndProc(Message& m)
at Syncfusion.Windows.Forms.Edit.StreamEditControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at MetraConfig.Program.Main(String[] args) in C:\ICE\Source\MetraTech\ICE\Program.cs:line 109
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

4 Replies

AD Administrator Syncfusion Team March 20, 2007 02:36 AM UTC

Sorry... that was supposed to read: "I've done *no* tweaking of any cut and paste functionality"


AD Administrator Syncfusion Team March 20, 2007 10:17 PM UTC

Hi Travis,

The exception is thrown because of an issue in Clipboard.SetDataObject method. It is possible to workaround this issue by deriving from EditControl and using the action-keys binding feature. I have attached a sample that illustrates this. Let me know if this meets your requirements.

Thank you for your patience.

Regards,
Ebenezer.P

Sample


BI Bits April 10, 2007 04:39 PM UTC

Hi! Ebenezer,

Does this sample and work around work for version 4.2.0.60?

Thanks,
Bits


AD Administrator Syncfusion Team April 17, 2007 04:02 AM UTC

Hi Bits,

It is possible to work around this issue in v4.2.0.60. I have attached a sample that illustrates this. Let me know if this meets your requirements.

Thank you for your patience.

Regards,
Ebenezer.P

sample

Loader.
Live Chat Icon For mobile
Up arrow icon