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.
Unfortunately, activation email could not send to your email. Please try again.

copy and paste exceptions

Thread ID:

Created:

Updated:

Platform:

Replies:

58142 Mar 19,2007 10:35 PM Apr 17,2007 12:02 AM Windows Forms 4
loading
Tags: EditControl
Administrator [Syncfusion]
Asked On March 19, 2007 10:35 PM

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()

Administrator [Syncfusion]
Replied On March 19, 2007 10:36 PM

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

Administrator [Syncfusion]
Replied On March 20, 2007 06:17 PM

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

Bits
Replied On April 10, 2007 12:39 PM

Hi! Ebenezer,

Does this sample and work around work for version 4.2.0.60?

Thanks,
Bits

Administrator [Syncfusion]
Replied On April 17, 2007 12:02 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;