System.ObjectDisposedException: Cannot access a disposed object: Object name: 'Icon'.

Description

Crash when on a screenshot when an application is in focus that utilzes a specific chrome webkit.

Repro:
1. Download the following file (Star Wars: The Old Republic launcher) and install it http://swtor.com/download
2. Launch the launcher
3. Attempt to take a screenshot. Observe the crash

Note: This can only be reproduced using the new reskin we have not yet made live. This will update will go live in Mid October. The current launcher does not produce the crash.

Software version: 1.2.6.7-RELEASE-359dcf30f24ef0257b3b319f729e0eb81106c37e (64 bit)
.NET runtime version: 4.0.30319.34014+
Time: 2015-08-21 20:49:31 -05:00
OS: unknown Enterprise (x64) 6.3 build 9600 revision 0
GDI object count: 36
User object count: 24
Surface count: 1
Exception: System.ObjectDisposedException
Message: Cannot access a disposed object.
Object name: 'Icon'.

Stack:
at System.Drawing.Icon.get_Handle()
at System.Drawing.Icon..ctor(Icon original, Int32 width, Int32 height)
at System.Drawing.Icon.Clone()
at Greenshot.Drawing.Surface.AddIconContainer(Icon icon, Int32 x, Int32 y)
at Greenshot.Drawing.Surface..ctor(ICapture capture)
at Greenshot.Helpers.CaptureHelper.HandleCapture()
at Greenshot.Helpers.CaptureHelper.MakeCapture()
at Greenshot.Helpers.CaptureHelper.CaptureWindow(Boolean captureMouse)
at GreenshotPlugin.Controls.HotkeyControl.HandleMessages(Message& m)
at Greenshot.MainForm.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Environment

None

Attachments

1
  • 22 Aug 2015, 01:58 AM

Gliffy Diagrams

Activity

Show:

DeeF August 22, 2015 at 4:47 PM

The software, launcher.exe, just has to be open and not logged in; however, the version that causes the crash isn't available to the public yet. It will be public mid October.

Robin Krom August 22, 2015 at 4:01 PM

I'll also see what I can do, haven't been able to install the software as my laptop doesn't have enough free space... I changed some stuff with the cursor for Greenshot 1.3 which might coincidentally also fix the problem...

DeeF August 22, 2015 at 1:53 PM

It could be. In the application we do change the cursor. I can't give you more information until I get in the office on Monday however. It could very well be an issue on our end as the application is still in development with the reskin. I'll get more info and retest this once we are code complete.

Robin Krom August 22, 2015 at 1:48 PM

Hi,

Thanks for the thorough info.
There seems to be a problem with the mouse cursor, is this something special?

Best wishes,
Robin

Details

Assignee

Reporter

Affects versions

Priority

Created August 22, 2015 at 2:11 AM
Updated August 22, 2015 at 7:43 PM