Page 1 of 1

Surrender bug

Posted: Sat Dec 16, 2023 8:37 pm
by Jafele
I cannot surrender with the latest BETA in any Phoenix random games and New Dawn (never happens in either standard or classic). An error message with the following text appears:

System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
en WindowsApplication1.DataClass.RemoveUnit(Int32 nr, GameClass& tgame, Boolean combatDestruction, Boolean doReconAndZOCupdate)
en WindowsApplication1.OrderWindowClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
en WindowsApplication1.PlayScreenClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
en WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e)
en System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
en System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.Form.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Ensamblados cargados **************
mscorlib
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.8.9181.0 built by: NET481REL1LAST_C
Código base: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
WindowsApplication1
Versión del ensamblado: 1.0.8723.20818
Versión Win32: 1.0.8723.20818
Código base: file:///F:/SteamLibrary/steamapps/common/Advanced%20Tactics%20Gold/AdvancedTacticsGold.exe
----------------------------------------
System.Windows.Forms
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.8.9181.0 built by: NET481REL1LAST_C
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.8.9206.0 built by: NET481REL1LAST_B
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.8.9037.0 built by: NET481REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Versión del ensamblado: 10.0.0.0
Versión Win32: 14.8.9037.0 built by: NET481REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Core
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.8.9200.0 built by: NET481REL1LAST_C
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.8.9037.0 built by: NET481REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.8.9037.0 built by: NET481REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.VisualBasic.resources
Versión del ensamblado: 10.0.0.0
Versión Win32: 14.8.9037.0 built by: NET481REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/v4.0_10.0.0.0_es_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll
----------------------------------------
mscorlib.resources
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.8.9037.0 built by: NET481REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_es_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
irrKlang.NET4
Versión del ensamblado: 1.0.6617.18847
Versión Win32:
Código base: file:///F:/SteamLibrary/steamapps/common/Advanced%20Tactics%20Gold/irrKlang.NET4.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Versión del ensamblado: 0.84.0.0
Versión Win32: 0.84.0.0
Código base: file:///F:/SteamLibrary/steamapps/common/Advanced%20Tactics%20Gold/ICSharpCode.SharpZipLib.DLL
----------------------------------------
System.Windows.Forms.resources
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.8.9037.0 built by: NET481REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Depuración JIT **************
Para habilitar la depuración Just In Time (JIT), el archivo de configuración de esta
aplicación o equipo (machine.config) debe tener el
valor jitDebugging establecido en la sección system.windows.forms.
La aplicación también se debe compilar con la depuración
habilitada

Por ejemplo:

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

Cuando esté habilitada la depuración JIT, cualquier excepción no controlada
se enviará al depurador JIT registrado en el equipo
en lugar de controlarlo mediante el cuadro de diálogo.

Re: Surrender bug

Posted: Sun Dec 17, 2023 4:55 pm
by Ormand
Thanks for reporting, only through people trying the beta can the problems be found and fixed. I found out what was happening here. It is also related to officers not having their handcards removed when being sent to the pool.