Skip to content

Crash with image copied from Gimp #96

@eltos

Description

@eltos

Crash with image copied from Gimp

To Reproduce

  1. Open Gimp, create new image
  2. Ctrl+A, Ctrl+C
  3. Try to paste into file

Error message

System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at PasteIntoFile.ClipboardContents.FromClipboard() in D:\a\PasteIntoFile\PasteIntoFile\PasteIntoFile\ClipboardContents.cs:line 847
   at PasteIntoFile.Dialog.readClipboard() in D:\a\PasteIntoFile\PasteIntoFile\PasteIntoFile\Dialog.cs:line 260
   at PasteIntoFile.Dialog.ClipboardChanged(Object sender, ClipboardChangedEventArgs e) in D:\a\PasteIntoFile\PasteIntoFile\PasteIntoFile\Dialog.cs:line 289
   at WK.Libraries.SharpClipboardNS.SharpClipboard.Invoke(Object content, ContentTypes type, SourceApplication source)
   at WK.Libraries.SharpClipboardNS.Views.ClipboardHandle.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Environment

  • App version: 5.5
  • OS: Win10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions