Willy-Kimura/SharpClipboard

SharpClipboard crashes when copying from Outlook overview

Closed this issue · 4 comments

outlook

When copying from Outlook overview, SharpClipboard crashes.

System.Runtime.InteropServices.COMException (0x800401D3): Data on clipboard is invalid. (Ausnahme von HRESULT: 0x800401D3 (CLIPBRD_E_BAD_DATA))
System.Runtime.InteropServices.COMException (0x800401D3): Data on clipboard is invalid. (Ausnahme von HRESULT: 0x800401D3 (CLIPBRD_E_BAD_DATA))
System.ArgumentNullException: The value must not be NULL.
Parametername: collection
bei System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection)
An unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll
The value must not be NULL.

I've managed to reproduce the same error.
Will be planning a fix for it sooner...

The issue is now fixed in v3.0.0.

Items such as Outlook emails will now be categorized as complex objects (blobs), and will be of type SharpClipboard.ContentTypes.Other. You can however display such items using the property ClipboardText if you don't need to parse them at all. Feel free to update and try now.

Thank you so much for the fix. It works for me.

Great!