Copying then Pasting Freehand Drawing Throws Error & Does Not Paste
Description
If you use the "Draw freehand (F)" tool to draw something, and then copy it and then try to paste it, it throws the error below and does not paste. Can not get the freehand drawing to paste at all. Tried with Ctrl-C, Ctrl-V, and tried with Edit > Copy, Edit > Paste.
Exception: System.InvalidCastException Message: Unable to cast object of type 'System.IO.MemoryStream' to type 'Greenshot.Plugin.Drawing.IDrawableContainerList'.
Stack: at Greenshot.Drawing.Surface.PasteElementFromClipboard() at Greenshot.ImageEditorForm.PasteToolStripMenuItemClick(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys keyData) at System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m, Keys shortcut) at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData) at Greenshot.ImageEditorForm.ProcessCmdKey(Message& msg, Keys keys) at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData) at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData) at System.Windows.Forms.Control.PreProcessMessage(Message& msg) at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg) at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
If you use the "Draw freehand (F)" tool to draw something, and then copy it and then try to paste it, it throws the error below and does not paste. Can not get the freehand drawing to paste at all. Tried with Ctrl-C, Ctrl-V, and tried with Edit > Copy, Edit > Paste.
Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2019-10-04 11:17:56 -05:00
OS: unknown (x64) 10.0 build 14393 revision 0
GDI object count: 296
User object count: 181
Exception: System.InvalidCastException
Message: Unable to cast object of type 'System.IO.MemoryStream' to type 'Greenshot.Plugin.Drawing.IDrawableContainerList'.
Stack:
at Greenshot.Drawing.Surface.PasteElementFromClipboard()
at Greenshot.ImageEditorForm.PasteToolStripMenuItemClick(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys keyData)
at System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m, Keys shortcut)
at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
at Greenshot.ImageEditorForm.ProcessCmdKey(Message& msg, Keys keys)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
Configuration dump: