Unhandled Exception Error during Ambush

Moderator: Vic

Post Reply
solops
Posts: 1075
Joined: Thu Jan 31, 2002 10:00 am
Location: Central Texas

Unhandled Exception Error during Ambush

Post by solops »

Using v1.21q in a newly generated game, One of my units moved into an ambush and I got this error:

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

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at WindowsApplication1.CustomBitmapClass.DrawLeaderPortrait_NewGfx(Int32 charId, Int32 w, Int32 h, Boolean showRelation, Int32 relChange) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 1317
at WindowsApplication1.CustomBitmapClass.DrawLeaderPortrait(Int32 charId, Int32 w, Int32 h, Boolean showRelation, Int32 relChange, Int32 isPeoplePortraitGroup, Int32 isPeopleId, Int32 isPeopleType, Int32 isRegId, Int32 isAllowHair, Int32 isUniformEventPic, Int32 sfNr, Boolean transBG, Boolean neverNewGfx) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 2849
at WindowsApplication1.CombatResultWindowClass2.dostuff(Boolean crmAlreadySet) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\Se1_CombatResultWindowClass2.vb:line 961
at WindowsApplication1.CombatResultWindowClass2.handleTimer() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\Se1_CombatResultWindowClass2.vb:line 3343
at WindowsApplication1.MessagePopUpScreenClass2.HandleTimer() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Screens\NewScreens\MessagePopUpScreenClass2.vb:line 267
at WindowsApplication1.Form1.Timer1_Tick(Object sender, EventArgs e) in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 2573
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.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.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.8665.27749
Win32 Version: 1.0.8665.27749
CodeBase: file:///H:/Matrix%20Games%20SSD-2/Shadow%20Empire/ShadowEmpire.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9172.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_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.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
irrKlang.NET4
Assembly Version: 1.0.6617.18847
Win32 Version:
CodeBase: file:///H:/Matrix%20Games%20SSD-2/Shadow%20Empire/irrKlang.NET4.DLL
----------------------------------------
SharpDX.Mathematics
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///H:/Matrix%20Games%20SSD-2/Shadow%20Empire/SharpDX.Mathematics.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///H:/Matrix%20Games%20SSD-2/Shadow%20Empire/ICSharpCode.SharpZipLib.DLL
----------------------------------------
SharpDX.Direct2D1
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///H:/Matrix%20Games%20SSD-2/Shadow%20Empire/SharpDX.Direct2D1.DLL
----------------------------------------
SharpDX
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///H:/Matrix%20Games%20SSD-2/Shadow%20Empire/SharpDX.DLL
----------------------------------------
SharpDX.DXGI
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///H:/Matrix%20Games%20SSD-2/Shadow%20Empire/SharpDX.DXGI.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.
All that is necessary for the triumph of evil is that good men do nothing.-Edmund Burke
Liberty lies in the hearts of men and women; if it dies there, no constitution, no law, no court can save it.-Judge Learned Hand
bavarian kid
Posts: 43
Joined: Wed Apr 08, 2015 7:40 pm

Re: Unhandled Exception Error during Ambush

Post by bavarian kid »

Potentially the same issue - v1.21q
Image

Unhandled exception during combat:

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

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at WindowsApplication1.CustomBitmapClass.DrawLeaderPortrait_NewGfx(Int32 charId, Int32 w, Int32 h, Boolean showRelation, Int32 relChange) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 1317
at WindowsApplication1.CustomBitmapClass.DrawLeaderPortrait(Int32 charId, Int32 w, Int32 h, Boolean showRelation, Int32 relChange, Int32 isPeoplePortraitGroup, Int32 isPeopleId, Int32 isPeopleType, Int32 isRegId, Int32 isAllowHair, Int32 isUniformEventPic, Int32 sfNr, Boolean transBG, Boolean neverNewGfx) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 2849
at WindowsApplication1.CombatResultWindowClass2.dostuff(Boolean crmAlreadySet) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\Se1_CombatResultWindowClass2.vb:line 992
at WindowsApplication1.CombatResultWindowClass2.handleTimer() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\Se1_CombatResultWindowClass2.vb:line 3343
at WindowsApplication1.MessagePopUpScreenClass2.HandleTimer() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Screens\NewScreens\MessagePopUpScreenClass2.vb:line 267
at WindowsApplication1.Form1.Timer1_Tick(Object sender, EventArgs e) in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 2573
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.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.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.8665.27749
Win32 Version: 1.0.8665.27749
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/ShadowEmpire.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9172.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_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.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
irrKlang.NET4
Assembly Version: 1.0.6617.18847
Win32 Version:
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/irrKlang.NET4.DLL
----------------------------------------
SharpDX.Mathematics
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.Mathematics.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/ICSharpCode.SharpZipLib.DLL
----------------------------------------
SharpDX.Direct2D1
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.Direct2D1.DLL
----------------------------------------
SharpDX
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.DLL
----------------------------------------
SharpDX.DXGI
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.DXGI.DLL
----------------------------------------
OptaneShellExt
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/WINDOWS/System32/DriverStore/FileRepository/iastorpinningcomponent.inf_amd64_357b728ba88fb99a/OptaneShellExt.dll
----------------------------------------
SharpShell
Assembly Version: 2.2.0.0
Win32 Version: 2.2.0.0
CodeBase: file:///C:/WINDOWS/System32/DriverStore/FileRepository/iastorpinningcomponent.inf_amd64_357b728ba88fb99a/SharpShell.DLL
----------------------------------------
PinningServiceApi
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/WINDOWS/System32/DriverStore/FileRepository/iastorpinningcomponent.inf_amd64_357b728ba88fb99a/PinningServiceApi.DLL
----------------------------------------
System.ComponentModel.Composition
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.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.
bavarian kid
Posts: 43
Joined: Wed Apr 08, 2015 7:40 pm

Re: Unhandled Exception Error during Ambush

Post by bavarian kid »

And again :D ... - please fix the issue.

Image

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

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at WindowsApplication1.CustomBitmapClass.DrawLeaderPortrait_NewGfx(Int32 charId, Int32 w, Int32 h, Boolean showRelation, Int32 relChange) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 1317
at WindowsApplication1.CustomBitmapClass.DrawLeaderPortrait(Int32 charId, Int32 w, Int32 h, Boolean showRelation, Int32 relChange, Int32 isPeoplePortraitGroup, Int32 isPeopleId, Int32 isPeopleType, Int32 isRegId, Int32 isAllowHair, Int32 isUniformEventPic, Int32 sfNr, Boolean transBG, Boolean neverNewGfx) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 2849
at WindowsApplication1.CombatResultWindowClass2.dostuff(Boolean crmAlreadySet) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\Se1_CombatResultWindowClass2.vb:line 992
at WindowsApplication1.CombatResultWindowClass2.handleTimer() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\Se1_CombatResultWindowClass2.vb:line 3343
at WindowsApplication1.MessagePopUpScreenClass2.HandleTimer() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Screens\NewScreens\MessagePopUpScreenClass2.vb:line 267
at WindowsApplication1.Form1.Timer1_Tick(Object sender, EventArgs e) in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 2573
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.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.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.8665.27749
Win32 Version: 1.0.8665.27749
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/ShadowEmpire.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9172.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_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.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
irrKlang.NET4
Assembly Version: 1.0.6617.18847
Win32 Version:
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/irrKlang.NET4.DLL
----------------------------------------
SharpDX.Mathematics
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.Mathematics.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/ICSharpCode.SharpZipLib.DLL
----------------------------------------
SharpDX.Direct2D1
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.Direct2D1.DLL
----------------------------------------
SharpDX
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.DLL
----------------------------------------
SharpDX.DXGI
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.DXGI.DLL
----------------------------------------
OptaneShellExt
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/WINDOWS/System32/DriverStore/FileRepository/iastorpinningcomponent.inf_amd64_357b728ba88fb99a/OptaneShellExt.dll
----------------------------------------
SharpShell
Assembly Version: 2.2.0.0
Win32 Version: 2.2.0.0
CodeBase: file:///C:/WINDOWS/System32/DriverStore/FileRepository/iastorpinningcomponent.inf_amd64_357b728ba88fb99a/SharpShell.DLL
----------------------------------------
PinningServiceApi
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/WINDOWS/System32/DriverStore/FileRepository/iastorpinningcomponent.inf_amd64_357b728ba88fb99a/PinningServiceApi.DLL
----------------------------------------
System.ComponentModel.Composition
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.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.
chrisb0
Posts: 5
Joined: Tue Jul 04, 2023 5:58 pm

Re: Unhandled Exception Error during Ambush

Post by chrisb0 »

I wonder if you turned off the new portrait types and switched back to the original types if the problem goes away (since the dump specifically is calling out a function "DrawLeaderPortrait_NewGfx..."). Guessing it's having trouble drawing the commander portrait at the top of the battle window since I don't see one up there.
bavarian kid
Posts: 43
Joined: Wed Apr 08, 2015 7:40 pm

Re: Unhandled Exception Error during Ambush

Post by bavarian kid »

Pretty sure Vic will figure it out ;) .

Anyway, interestingly unhandled exception error issue is tricky to reproduce - sometimes game crashes sometimes combat proceeds as designed.

Specific unhandled exception error in previous screenshot (fight in hex 97,29, save included) did not reappear after restarting the game and redoing the fight Image.

Hoping for a patch ... 8-)
Attachments
121q_t5c3 crash2.7z
(3.74 MiB) Downloaded 2 times
bavarian kid
Posts: 43
Joined: Wed Apr 08, 2015 7:40 pm

Re: Unhandled Exception Error during Ambush

Post by bavarian kid »

chrisb0 wrote: Sun Sep 24, 2023 9:30 pm Guessing it's having trouble drawing the commander portrait at the top of the battle window since I don't see one up there.
Game also does crash with new leader images already drawn ;)

Image

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

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at WindowsApplication1.CustomBitmapClass.DrawLeaderPortrait_NewGfx(Int32 charId, Int32 w, Int32 h, Boolean showRelation, Int32 relChange) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 1317
at WindowsApplication1.CustomBitmapClass.DrawLeaderPortrait(Int32 charId, Int32 w, Int32 h, Boolean showRelation, Int32 relChange, Int32 isPeoplePortraitGroup, Int32 isPeopleId, Int32 isPeopleType, Int32 isRegId, Int32 isAllowHair, Int32 isUniformEventPic, Int32 sfNr, Boolean transBG, Boolean neverNewGfx) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 2849
at WindowsApplication1.CombatResultWindowClass2.dostuff(Boolean crmAlreadySet) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\Se1_CombatResultWindowClass2.vb:line 992
at WindowsApplication1.CombatResultWindowClass2.handleTimer() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\Se1_CombatResultWindowClass2.vb:line 3343
at WindowsApplication1.MessagePopUpScreenClass2.HandleTimer() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Screens\NewScreens\MessagePopUpScreenClass2.vb:line 267
at WindowsApplication1.Form1.Timer1_Tick(Object sender, EventArgs e) in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 2573
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.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.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.8665.27749
Win32 Version: 1.0.8665.27749
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/ShadowEmpire.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9172.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_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.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
irrKlang.NET4
Assembly Version: 1.0.6617.18847
Win32 Version:
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/irrKlang.NET4.DLL
----------------------------------------
SharpDX.Mathematics
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.Mathematics.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/ICSharpCode.SharpZipLib.DLL
----------------------------------------
SharpDX.Direct2D1
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.Direct2D1.DLL
----------------------------------------
SharpDX
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.DLL
----------------------------------------
SharpDX.DXGI
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Matrix%20Games/Shadow%20Empire/SharpDX.DXGI.DLL
----------------------------------------
OptaneShellExt
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/WINDOWS/System32/DriverStore/FileRepository/iastorpinningcomponent.inf_amd64_357b728ba88fb99a/OptaneShellExt.dll
----------------------------------------
SharpShell
Assembly Version: 2.2.0.0
Win32 Version: 2.2.0.0
CodeBase: file:///C:/WINDOWS/System32/DriverStore/FileRepository/iastorpinningcomponent.inf_amd64_357b728ba88fb99a/SharpShell.DLL
----------------------------------------
PinningServiceApi
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/WINDOWS/System32/DriverStore/FileRepository/iastorpinningcomponent.inf_amd64_357b728ba88fb99a/PinningServiceApi.DLL
----------------------------------------
System.ComponentModel.Composition
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.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.
User avatar
Vic
Posts: 9677
Joined: Mon May 17, 2004 2:17 pm
Contact:

Re: Unhandled Exception Error during Ambush

Post by Vic »

Thanks for reporting. I am working on it.
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
solops
Posts: 1075
Joined: Thu Jan 31, 2002 10:00 am
Location: Central Texas

Re: Unhandled Exception Error during Ambush

Post by solops »

I have not had a chance to use the q2 patch yet. I want to mention that I reverted to the original portraits and have had no errors. Insufficient time has been spent to draw any conclusions. Will spend 4 to 6 hours with q2 and original portraits today.
All that is necessary for the triumph of evil is that good men do nothing.-Edmund Burke
Liberty lies in the hearts of men and women; if it dies there, no constitution, no law, no court can save it.-Judge Learned Hand
Post Reply

Return to “Tech Support”