Stack: at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2) at Greenshot.Drawing.LineContainer.Draw(Graphics graphics, RenderMode rm) at Greenshot.Drawing.DrawableContainer.DrawContent(Graphics graphics, Bitmap bmp, RenderMode renderMode, Rectangle clipRectangle) at Greenshot.Drawing.DrawableContainerList.Draw(Graphics g, Bitmap bitmap, RenderMode renderMode, Rectangle clipRectangle) at Greenshot.Drawing.Surface.SurfacePaint(Object sender, PaintEventArgs paintEventArgs) at System.Windows.Forms.Control.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
This issue should be fixed in Greenshot 1.3. The final release is not ready yet, but if you don't want to wait, you can try the latest unstable build (>= 1.3.178) from the Greenshot version history page or from the Github releases page.
Juha Kuusama
November 8, 2018 at 2:24 PM
To reproduce: Open a screenshot, start drawing lines, keep shift pressed down. Draw a line segment down. Move mouse so that the four direction cursor disappears, then move back to the line ending point so, that the 4dir cursor reappears. Click.
Action: I was editing a screenshot by adding and then moving lines.
Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2017-10-21 15:29:42 +02:00
OS: unknown (x64) 10.0 build 16299 revision 0
GDI object count: 154
User object count: 105
Exception: System.OverflowException
Message: Overflow error.
Stack:
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2)
at Greenshot.Drawing.LineContainer.Draw(Graphics graphics, RenderMode rm)
at Greenshot.Drawing.DrawableContainer.DrawContent(Graphics graphics, Bitmap bmp, RenderMode renderMode, Rectangle clipRectangle)
at Greenshot.Drawing.DrawableContainerList.Draw(Graphics g, Bitmap bitmap, RenderMode renderMode, Rectangle clipRectangle)
at Greenshot.Drawing.Surface.SurfacePaint(Object sender, PaintEventArgs paintEventArgs)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Configuration dump: