Hi Xceed,
With the Datagrid v4.3.12074.17240 of the DataGrid, a
user reported me an issue while copying data to the clipboard, with the following stack trace.
I think it's because only 1 process can open the clipboard so if another process has it opened the subsequent requests will fail until the first releases the clipboard. This was sort of handled in the WinForms Clipboard class where it would retry the set with a delay in between each try, but the WPF clipboard class doesn't do this, so if it fails on the first show the exception occurs.
The Datagrid should catch the exception and retry the operation later. What do you think?
Thanks
Cyber Sinh
Une exception de
type 'System.Runtime.InteropServices.COMException' a été levée :
Error en OpenClipboard (Excepción de HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN))
en
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
errorCode, IntPtr errorInfo)
en System.Windows.Clipboard.CriticalSetDataObject(Object data, Boolean copy)
en Xceed.Wpf.DataGrid.DataGridControl.OnCopyExecuted(Object sender,
ExecutedRoutedEventArgs e)