Error with Print Screen button

bnhooked
2008-02-04
2013-01-20
  • bnhooked
    bnhooked
    2008-02-04

    I was getting the following debug unhandled error message when I attempted to capture.  "Was", after tring many times, I have yet to receive the error message again, just wanted to let you know.  I have .net 2.0 and 3.5 installed if that helps too.

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

    ************** Exception Text **************
    System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
       at System.Drawing.Image.FromHbitmap(IntPtr hbitmap, IntPtr hpalette)
       at System.Drawing.Image.FromHbitmap(IntPtr hbitmap)
       at GreenShot.Helpers.WindowCapture.CaptureWindow(IntPtr handle, Rectangle rect)
       at GreenShot.Helpers.WindowCapture.CaptureWindow()
       at GreenShot.MainForm.initCapture(Boolean capturingWindows)
       at GreenShot.MainForm.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.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    Greenshot
        Assembly Version: 0.5.1.0
        Win32 Version: 0.5.1.0
        CodeBase: file:///D:/files/Greenshot-0.5.001/Greenshot.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        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.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.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.

     
    • Jens Klingen
      Jens Klingen
      2008-02-08

      Thanks for reporting this.
      Did you capture something "special" when this error occurred? Like, say, a citrix application?

       
    • bnhooked
      bnhooked
      2008-02-13

      No nothing special.

      It's been over a week now and I have used many time without a problem.  It may have been just a fluke.