Clipboard problem

Posted by: asystems on 8 September 2017, 3:17 pm EST

  • Posted 8 September 2017, 3:17 pm EST

    Hello.
    I am working on a .Net application which uses Farpoint Spread 5.0.3522 and .Net Framework 4.0
    Application randomly freezes when copying spread cell content using Ctrl+C.
    I cannot identifie the specific steps that lead to this situation so I am not able to reproduce.

    It happens when the executable is run stand alone or debugged in Visual Studio 2013.
    If the process is run from the debugger, Visual Studio is also locked when the process hangs.

    Following are two stack frames extracted from the dump of the executable.


    Flagged > 8032 0 Worker Thread FarPoint.Win.dll!FarPoint.Win.ClipboardChangeNotifier.WndProc Normal
    [Managed to Native Transition]
    FarPoint.Win.dll!FarPoint.Win.ClipboardChangeNotifier.WndProc(ref System.Windows.Forms.Message e)
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)
    [Native to Managed Transition]
    [Managed to Native Transition]
    FarPoint.Win.dll!FarPoint.Win.ClipboardChangeNotifier.WndProc(ref System.Windows.Forms.Message e)
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)
    [Native to Managed Transition]
    [Managed to Native Transition]
    FarPoint.Win.dll!FarPoint.Win.ClipboardChangeNotifier.WndProc(ref System.Windows.Forms.Message e)
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)
    [Native to Managed Transition]
    [Managed to Native Transition]
    System.Windows.Forms.dll!System.Windows.Forms.Clipboard.SetDataObject(object data, bool copy, int retryTimes, int retryDelay)
    System.Windows.Forms.dll!System.Windows.Forms.Clipboard.SetDataObject(object data)
    FarPoint.Win.Spread.dll!FarPoint.Win.Spread.SheetView.b(bool A_0, FarPoint.Win.Spread.Model.CellRange A_1, FarPoint.Win.Spread.ClipboardCopyOptions A_2, ref System.Collections.Generic.List A_3)
    FarPoint.Win.Spread.dll!FarPoint.Win.Spread.SheetView.a(bool A_0, FarPoint.Win.Spread.Model.CellRange A_1, FarPoint.Win.Spread.ClipboardCopyOptions A_2)
    FarPoint.Win.Spread.dll!FarPoint.Win.Spread.SheetView.a(bool A_0, FarPoint.Win.Spread.Model.CellRange A_1)
    FarPoint.Win.Spread.dll!FarPoint.Win.Spread.SheetView.a(bool A_0)
    FarPoint.Win.Spread.dll!FarPoint.Win.Spread.SheetView.ClipboardCopy()
    FarPoint.Win.Spread.dll!FarPoint.Win.Spread.SpreadView.ay()
    FarPoint.Win.Spread.dll!FarPoint.Win.Spread.SpreadView.a9.a(object A_0)
    FarPoint.Win.Spread.dll!FarPoint.Win.Spread.SpreadView.a(System.Windows.Forms.KeyEventArgs A_0)
    FarPoint.Win.Spread.dll!FarPoint.Win.Spread.FpSpread.OnKeyDown(System.Windows.Forms.KeyEventArgs e)
    System.Windows.Forms.dll!System.Windows.Forms.Control.ProcessKeyEventArgs(ref System.Windows.Forms.Message m)
    System.Windows.Forms.dll!System.Windows.Forms.Control.ProcessKeyMessage(ref System.Windows.Forms.Message m)
    System.Windows.Forms.dll!System.Windows.Forms.Control.WmKeyChar(ref System.Windows.Forms.Message m)
    System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m)
    FarPoint.Win.Spread.dll!FarPoint.Win.Spread.FpSpread.WndProc(ref System.Windows.Forms.Message m)
    System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m)
    System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m)
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m)
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.WndProc(ref System.Windows.Forms.Message m)
    FarPoint.Win.dll!FarPoint.Win.ClipboardChangeNotifier.WndProc(ref System.Windows.Forms.Message e)
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)
    [Native to Managed Transition]
    [Managed to Native Transition]
    System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr dwComponentID, int reason, int pvLoopData)
    System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason, System.Windows.Forms.ApplicationContext context)
    System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context)
    System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm)
    Allix3.exe!HQ.Program.Main(string[] args) Line 151
    [Native to Managed Transition]
    [Managed to Native Transition]
    mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args)
    Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state)
    mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart()
    [Native to Managed Transition]

    Not Flagged 5896 0 Worker Thread vshost.RunParkingWindow Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.WaitForThreadExit Normal
    [Managed to Native Transition]
    Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.WaitForThreadExit()
    Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunParkingWindowThread()
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state)
    mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart()
    [Native to Managed Transition]

    Thanks for your help.

    J-Christophe.
  • Replied 8 September 2017, 3:17 pm EST

    Hello J-Christophe,

    You are using a pretty old build. We need to have a look at the sample in order to replicate the issue.

    Hence, please provide us with the same and we will look into this further.

    You can also try using the latest version of Spread as see if the issue is replicable.
    http://spread.grapecity.com/Downloads/

    Thanks,
    Reeva
  • Replied 8 September 2017, 3:17 pm EST

    Thank you.

    After 3 weeks testing with the Farpoint 8, I did not reproduce the problem.
    So we are now considering upgrade our version.

    J-Christophe.
  • Marked as Answer

    Replied 8 September 2017, 3:17 pm EST

    Hello Christophe,

    Glad to know you are p0lanning to upgrade. Our new version provide a lot more features and bug fixes as well and you will benefit from them.

    Thanks,
    Reeva
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels