Willy-Kimura / SharpClipboard

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

Throws ExternalException when closing outlook with large image in clipboard. #3

Closed bobend closed 5 years ago

bobend commented 5 years ago

Version: 3.0.0

Steps to reproduce:

  1. Run SharpClipboardPreview.Tests
  2. Open Outlook
  3. Copy a large image from inside a message body.
  4. Close Outlook
  5. ClipboardHandle throws in protected override void WndProc(ref Message m) when trying to call Clipboard.GetDataObject();

Exception:

System.Runtime.InteropServices.ExternalException: 'Requested Clipboard operation did not succeed.'

Willy-Kimura commented 5 years ago

Great. I've not managed to reproduce the issue but have seen the likely possible outcomes. I've tested the code though with all other supported formats; works fine.

Merging changes...