question

AjithRampeesa-5006 avatar image
0 Votes"
AjithRampeesa-5006 asked AjithRampeesa-5006 published

A generic error occurred in GDI and Red X displayed and a unhandled exception.

Hello Guys,
please help us.
Me and my team tired to resolve this issue.

.138969-img-20211001-wa0001.jpg138970-img-20211008-wa0000.jpg



Please find the error description

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 (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Image.FromHbitmap(IntPtr hbitmap, IntPtr hpalette)
at System.Drawing.Image.FromHbitmap(IntPtr hbitmap)
at System.Windows.Forms.ImageList.GetBitmap(Int32 index)
at System.Windows.Forms.ImageList.ImageCollection.get_Item(Int32 index)
at Crownwood.DotNetMagic.Controls.DefaultNodeVC.DrawImage(TreeControl tc, Node n, Graphics g, Int32 x, Int32 y, Int32 width, Int32 height)
at Crownwood.DotNetMagic.Controls.DefaultNodeVC.Draw(TreeControl tc, Node n, Graphics g, Rectangle clipRectangle, Int32 leftOffset, Int32 rightOffset)
at Crownwood.DotNetMagic.Controls.GroupNodeVC.Draw(TreeControl tc, Node n, Graphics g, Rectangle clipRectangle, Int32 leftOffset, Int32 rightOffset)
at Crownwood.DotNetMagic.Controls.TreeControl.DrawNode(Graphics g, Node n)
at Crownwood.DotNetMagic.Controls.TreeControl.DrawNodeCollection(Graphics g, NodeCollection nc)
at Crownwood.DotNetMagic.Controls.TreeControl.DrawNode(Graphics g, Node n)
at Crownwood.DotNetMagic.Controls.TreeControl.DrawNodeCollection(Graphics g, NodeCollection nc)
at Crownwood.DotNetMagic.Controls.TreeControl.DrawAllNodes(PaintEventArgs e)
at Crownwood.DotNetMagic.Controls.TreeControl.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 Crownwood.DotNetMagic.Controls.TreeControl.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: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll


dcDesktop
Assembly Version: 9.1.7.0
Win32 Version: 9.1.7.44
CodeBase: file:///C:/Datacap/DcDesktop/dcDesktop.exe


System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3801.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll


System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


DotNetMagic2005
Assembly Version: 5.4.0.0
Win32 Version: 9.1.7.4
CodeBase: file:///C:/Datacap/DcDesktop/DotNetMagic2005.DLL


System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll


dcDTlib
Assembly Version: 9.1.7.0
Win32 Version: 9.1.7.44
CodeBase: file:///C:/Datacap/DcDesktop/dcDTlib.DLL


JobMonitor
Assembly Version: 9.1.7.0
Win32 Version: 9.1.7.15
CodeBase: file:///C:/Datacap/DcDesktop/JobMonitor.DLL


PresentationFramework
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll


WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll


System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll


PresentationCore
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll


System.Xaml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll


System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


WindowsFormsIntegration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll


System.Windows.Forms.Ribbon
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Datacap/DcDesktop/System.Windows.Forms.Ribbon.DLL


DialogManager
Assembly Version: 9.1.7.0
Win32 Version: 9.1.7.2
CodeBase: file:///C:/Datacap/DcDesktop/DialogManager.DLL


dcJMvm
Assembly Version: 9.1.7.0
Win32 Version: 9.1.7.19
CodeBase: file:///C:/Datacap/DcDesktop/dcJMvm.DLL


PresentationFramework.Aero2
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll


PresentationFramework-SystemXml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll


UIAutomationTypes
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll


UIAutomationProvider
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll


System.Deployment
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll


AxInterop.DCIMAGELib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Datacap/DcDesktop/AxInterop.DCIMAGELib.DLL


AxInterop.DCTHUMBSLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Datacap/DcDesktop/AxInterop.DCTHUMBSLib.DLL


Interop.DCTHUMBSLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Datacap/DcDesktop/Interop.DCTHUMBSLib.DLL


Interop.DCIMAGELib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Datacap/DcDesktop/Interop.DCIMAGELib.DLL


Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll


dcKST
Assembly Version: 9.1.7.0
Win32 Version: 9.1.7.13
CodeBase: file:///C:/Datacap/DcDesktop/dcKST.DLL


System.Web.Extensions
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Extensions/v4.0_4.0.0.0__31bf3856ad364e35/System.Web.Extensions.dll


System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll


Microsoft.CSharp
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll


System.Dynamic
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll


Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll


Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll


dcrrcl
Assembly Version: 9.1.7.0
Win32 Version: 9.1.7.16
CodeBase: file:///C:/Datacap/DcDesktop/dcrrcl.DLL


iRRX
Assembly Version: 9.1.7.0
Win32 Version: 9.1.7.11
CodeBase: file:///C:/Datacap/dcshared/NET/iRRX.dll


DotEditPanels
Assembly Version: 9.0.0.0
Win32 Version: 9.0.0.11
CodeBase: file:///C:/Datacap/DcDesktop/DotEditPanels.DLL


AxInterop.DCEDITLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Datacap/DcDesktop/AxInterop.DCEDITLib.DLL


Interop.DCEDITLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Datacap/DcDesktop/Interop.DCEDITLib.DLL


Datacap.Global
Assembly Version: 9.1.7.0
Win32 Version: 9.1.7.63
CodeBase: file:///C:/Datacap/DcDesktop/Datacap.Global.DLL


System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll


System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll


PresentationFramework-SystemData
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemData/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemData.dll


System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.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.


windows-serverdotnet-runtimedotnet-standard
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


If this software is developed by you, make sure that you are using valid images for tree nodes. Maybe you should also show this error to the manufacturer of the third-party Tree control. However, it seems that the product is too old and is withdrawn.

But if it is not developed by you, then you should contact the authors.

0 Votes 0 ·

0 Answers