Willy-Kimura / SharpClipboard

A library for anonymously monitoring clipboard entries.
183 stars 34 forks source link

SharpClipboard crashes when copying from Outlook overview #2

Closed satyris closed 5 years ago

satyris commented 5 years ago

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.

Willy-Kimura commented 5 years ago

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

Willy-Kimura commented 5 years ago

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.

satyris commented 5 years ago

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

Willy-Kimura commented 5 years ago

Great!