Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#87 Print Screen capture using Cropper crashing w/ Emerge

open
nobody
None
5
2012-07-18
2009-05-15
Anonymous
No

Posted from the forums as requested. This is running Emerge 4.2.0.20322

I use a screen capture utility (Cropper). When I use Cropper w/ the Explorer desktop I have no issues. However, when I use Cropper with ED and attempt to perform a full screen capture by hitting the Print Screen key, Cropper will error out and die. Again, this doesn’t happen with the Explorer shell so I’m going to make a leap in judgment and assume that this is error with Cropper is ED related. The error is a .NET Framework error, "Parameter is not valid":

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

** Exception Text **
System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
at Fusion8.Cropper.Core.NativeMethods.GetDesktopBitmap(Int32 x, Int32 y, Int32 width, Int32 height)
at Fusion8.Cropper.Core.NativeMethods.GetDesktopBitmap(Rectangle rectangle)
at Fusion8.Cropper.Core.NativeMethods.GetDesktopBitmap(IntPtr hWnd, Boolean colorNonFormArea, Color backgroundColor)
at Fusion8.Cropper.Core.ImageCapture.CaptureByHdc(IntPtr hdc, Boolean cropAndColor)
at Fusion8.Cropper.Core.ImageCapture.CaptureDesktop()
at Fusion8.Cropper.MainCropForm.TakeScreenShot(ScreenShotBounds bounds)
at Fusion8.Cropper.MainCropForm.OnHotKeyPress(KeyEventArgs e)
at Fusion8.Cropper.CropForm.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)

** Loaded Assemblies **
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Cropper
Assembly Version: 1.9.1.89
Win32 Version: 1.9.1.89
CodeBase: file:///C:/Program%20Files/Fusion8Design/Cropper/Cropper.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0
b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Skybound.VisualStyles
Assembly Version: 2.0.0.0
Win32 Version: 2.1.1.0
CodeBase: file:///C:/Program%20Files/Fusion8Design/Cropper/Skybound.VisualStyles.DLL
----------------------------------------
Cropper.Core
Assembly Version: 1.9.1.89
Win32 Version: 1.9.1.89
CodeBase: file:///C:/Program%20Files/Fusion8Design/Cropper/Cropper.Core.DLL
----------------------------------------
Cropper.Extensibility
Assembly Version: 1.9.1.89
Win32 Version: 1.9.1.89
CodeBase: file:///C:/Program%20Files/Fusion8Design/Cropper/Cropper.Extensibility.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0
b77a5c561934e089/System.Xml.dll
----------------------------------------
Cropper.BmpFormat
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Fusion8Design/Cropper/plugins/Cropper.BmpFormat.dll
----------------------------------------
Cropper.ClipboardFormat
Assembly Version: 1.2.0.0
Win32 Version: 1.2.0.0
CodeBase: file:///C:/Program%20Files/Fusion8Design/Cropper/plugins/Cropper.ClipboardFormat.dll
----------------------------------------
Cropper.JpgFormat
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/Fusion8Design/Cropper/plugins/Cropper.JpgFormat.dll
----------------------------------------
Cropper.PngFormat
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Fusion8Design/Cropper/plugins/Cropper.PngFormat.dll
----------------------------------------
Cropper.PrinterOutput
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Fusion8Design/Cropper/plugins/Cropper.PrinterOutput.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
q7dl7ovo
Assembly Version: 1.9.1.89
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0
b77a5c561934e089/System.dll
----------------------------------------
1f1pepv3
Assembly Version: 1.9.1.89
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

** JIT Debugging **
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true"/>
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Also seeing a similar .NET error with QTTabBar under ED that I don't seem to experience in the Windows shell:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

** Exception Text **
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at QTTabBarLib.QTButtonBar.CreateItems(Boolean fRefresh)
at QTTabBarLib.QTButtonBar.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)

** Loaded Assemblies **
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
QTAddressBar
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTAddressBar/1.0.0.078a0cde69b47ca25/QTAddressBar.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0
b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0
b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Interop.SHDocVw
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Interop.SHDocVw/1.1.0.078a0cde69b47ca25/Interop.SHDocVw.dll
----------------------------------------
QTTabBar
Assembly Version: 1.0.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.0
78a0cde69b47ca25/QTTabBar.dll
----------------------------------------
QTPluginLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.1.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTPluginLib/1.0.0.078a0cde69b47ca25/QTPluginLib.dll
----------------------------------------
CreateNewItemButton
Assembly Version: 1.1.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.0
78a0cde69b47ca25/QTTabBar.dll
----------------------------------------
Spacer
Assembly Version: 1.1.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.078a0cde69b47ca25/QTTabBar.dll
----------------------------------------
SelectionTools
Assembly Version: 1.1.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.0
78a0cde69b47ca25/QTTabBar.dll
----------------------------------------
FolderTreeButton
Assembly Version: 1.0.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.078a0cde69b47ca25/QTTabBar.dll
----------------------------------------
OptionButton
Assembly Version: 1.0.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.0
78a0cde69b47ca25/QTTabBar.dll
----------------------------------------
QTFileTools
Assembly Version: 1.0.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.078a0cde69b47ca25/QTTabBar.dll
----------------------------------------
QTMemo
Assembly Version: 1.0.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.0
78a0cde69b47ca25/QTTabBar.dll
----------------------------------------
QTViewModeButton
Assembly Version: 1.0.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.078a0cde69b47ca25/QTTabBar.dll
----------------------------------------
QTWindowManager
Assembly Version: 1.1.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.0
78a0cde69b47ca25/QTTabBar.dll
----------------------------------------
ShowStatusBar
Assembly Version: 1.0.0.0
Win32 Version: 1.2.3.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/QTTabBar/1.0.0.0__78a0cde69b47ca25/QTTabBar.dll
----------------------------------------

** JIT Debugging **
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true"/>
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Discussion


Anonymous


Cancel   Add attachments