Appli crashed: Unhandled Exception

Post bug reports and ask for tech support here. Post any Community Site Requests here as well.

Moderator: Vic

Post Reply
User avatar
nukkxx5058
Posts: 3141
Joined: Thu Feb 03, 2005 2:57 pm
Location: France

Appli crashed: Unhandled Exception

Post by nukkxx5058 »

Hi, I'm having this crash quite often when looking at the detailed stats of an unit.

Is this a known issue ? Any fix ?

Thank you

Image
Attachments
20181031..Edition.jpg
20181031..Edition.jpg (56.32 KiB) Viewed 1749 times
Winner of the first edition of the Command: Modern Operations COMPLEX PBEM Tournament (IKE) (April 2022) :-)
User avatar
nukkxx5058
Posts: 3141
Joined: Thu Feb 03, 2005 2:57 pm
Location: France

RE: Appli crashed: Unhandled Exception

Post by nukkxx5058 »

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

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at WindowsApplication1.SFWindowClass.DoStuff()
at WindowsApplication1.SFWindowClass.DoRefresh()
at WindowsApplication1.SFWindowClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.MessagePopUpScreenClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.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.8798 (QFE.050727-8700)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.6646.29399
Win32 Version: 1.0.6646.29399
CodeBase: file:///E:/Program%20Files/Steam/steamapps/common/Advanced%20Tactics%20Gold/AdvancedTacticsGold.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
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.8791 (QFE.050727-8700)
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.5495 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
irrKlang.NET
Assembly Version: 1.3.0.0
Win32 Version: 1, 1, 0, 0
CodeBase: file:///E:/Program%20Files/Steam/steamapps/common/Advanced%20Tactics%20Gold/irrKlang.NET.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///E:/Program%20Files/Steam/steamapps/common/Advanced%20Tactics%20Gold/ICSharpCode.SharpZipLib.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.


Winner of the first edition of the Command: Modern Operations COMPLEX PBEM Tournament (IKE) (April 2022) :-)
User avatar
Vic
Posts: 9931
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Appli crashed: Unhandled Exception

Post by Vic »

Hi,

Could not repeat this, but...

Whats your ATG version?

Is this in a specific scenario or everywhere? If only in a specific scenario, in which one?

Best wishes,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
User avatar
nukkxx5058
Posts: 3141
Joined: Thu Feb 03, 2005 2:57 pm
Location: France

RE: Appli crashed: Unhandled Exception

Post by nukkxx5058 »

ORIGINAL: Vic

Hi,

Could not repeat this, but...

Whats your ATG version?

Is this in a specific scenario or everywhere? If only in a specific scenario, in which one?

Best wishes,
Vic

Hi, I'm running Steam's version.

The crash is not in all scenarios. For example it's working OK in GD38.

The crash was in Russia41 (in \Classic WWW2\). I can replicate it each time I click on combat stats.

I just tried another scenario "North Africa" in the same directory and it's the same.

And same in "training1" scenraio.

So I guess it's quite often ...
Winner of the first edition of the Command: Modern Operations COMPLEX PBEM Tournament (IKE) (April 2022) :-)
MC456
Posts: 66
Joined: Thu Nov 08, 2018 10:07 pm

RE: Appli crashed: Unhandled Exception

Post by MC456 »

Just want to chime in and say there are others having the same issue. Another user and I posted our log on the Steam discussion forums. As I said in the Steam thread:

some scenarios seem to work, while others crash instantly when clicking the Combat Stats button. I just tested out the CLASSIC_WW2\netherlands1940 scenario and it seems to work fine. Every other scenario in that folder seems to crash though.

I also had the same issue with a lot of custom scenarios from the scenario bank website.

More details:
I'm running Windows 8.1, 64bit OS. Only recently reinstalled on Steam hoping it would fix the problem (bought a key a long time ago), but it persisted.

Thanks for any help.
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Appli crashed: Unhandled Exception

Post by ernieschwitz »

Bombur and I had this happen in one of the first scenarios we made. It turned out that giving 0 HP to a SFT will cause something like this. It could be that it is the same thing in these cases.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
MC456
Posts: 66
Joined: Thu Nov 08, 2018 10:07 pm

RE: Appli crashed: Unhandled Exception

Post by MC456 »

Well hopefully Vic can think of a way to fix this. Love the game and really hope to play some of the custom scenarios others have created but most of them seem to cause this crash.
User avatar
Vic
Posts: 9931
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Appli crashed: Unhandled Exception

Post by Vic »

Yeah I guess is its about time for a new Private Beta.

Thanks for reporting this. I confirmed the bug and I'll get on it.

Best wishes,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
MC456
Posts: 66
Joined: Thu Nov 08, 2018 10:07 pm

RE: Appli crashed: Unhandled Exception

Post by MC456 »

Glad to hear. Thanks !
User avatar
Vic
Posts: 9931
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Appli crashed: Unhandled Exception

Post by Vic »

Posted private beta 2.28 which should among others solve this issue.

See the main forum for the download link.

Thanks for the feedback!

best wishes,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
User avatar
nukkxx5058
Posts: 3141
Joined: Thu Feb 03, 2005 2:57 pm
Location: France

RE: Appli crashed: Unhandled Exception

Post by nukkxx5058 »

Thanks Vic ! Will give it a try. Will this patch affect current pbem games ?
Winner of the first edition of the Command: Modern Operations COMPLEX PBEM Tournament (IKE) (April 2022) :-)
User avatar
Vic
Posts: 9931
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Appli crashed: Unhandled Exception

Post by Vic »

All the patches after the official 2.27g should be completely compatible.

Worst thing that might happen is a version difference message during PBEM.

best wishes,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
User avatar
nukkxx5058
Posts: 3141
Joined: Thu Feb 03, 2005 2:57 pm
Location: France

RE: Appli crashed: Unhandled Exception

Post by nukkxx5058 »

Thanks ! :-)
Winner of the first edition of the Command: Modern Operations COMPLEX PBEM Tournament (IKE) (April 2022) :-)
MC456
Posts: 66
Joined: Thu Nov 08, 2018 10:07 pm

RE: Appli crashed: Unhandled Exception

Post by MC456 »

Hey Vic,

My game is crashing on startup now. Is it because I have it installed on Steam? I reversed it by copying over the original .exe again for now.

The forum rules aren't letting me post the error log here though. It's saying: "You are not allowed to post links, emails or phone numbers for 7 days from the date of your tenth post." -- Do you want me to PM it?
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Appli crashed: Unhandled Exception

Post by ernieschwitz »

In general these version that Vic is posting for testing are not for Steam users. So it was a good thing you saved your exe file. I imagine that this is because the process of updating on steam is more complex, but I don't know for sure.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
MC456
Posts: 66
Joined: Thu Nov 08, 2018 10:07 pm

RE: Appli crashed: Unhandled Exception

Post by MC456 »

I figured it was probably due to Steam. Hopefully I can give feedback once Vic pushes the release to the Steam version.

It's funny because I had bought ATG a long time ago and had been playing the non-steam version. Once I discovered this error I thought maybe registering my key on Steam would fix it, but nope lol

Not a huge deal. I am a patient guy and still having tons of fun with the game regardless.
Post Reply

Return to “Advanced Tactics Support”