Page 1 of 1

Crash at mouse click

Posted: Tue Aug 14, 2012 8:37 pm
by Sator
Sometimes the game crashes when I click the mouse to open or close a pop-up window.
In this case I did click on "press any key" box and the game freezed (I had to close it using ctrl-alt-del). Then I managed to capture the screen and to copy the windows advice.
I hope this can help. Here's what was written in windows' box (infotunately it is partly in italian):

Testo dell'eccezione **************
System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.
in WindowsApplication1.HandyFunctionsclass.CurrentAttackStackAir()
in WindowsApplication1.OrderWindowClass2.dostuff2(Graphics g)
in WindowsApplication1.OrderWindowClass2.dostuff()
in WindowsApplication1.OrderWindowClass2.DoRefresh()
in WindowsApplication1.ScreenClass.FlagAll()
in WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e)
in System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
in System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
in System.Windows.Forms.ContainerControl.WndProc(Message& m)
in System.Windows.Forms.Form.WndProc(Message& m)
in WindowsApplication1.ImmoveableForm.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Assembly caricati **************
mscorlib
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Versione assembly: 1.0.4600.32592
Versione Win32: 1.0.4600.32592
Base di codice: file:///C:/Matrix%20Games/Decisive%20Campaigns%20Case%20Blue/CaseBlue.exe
----------------------------------------
System.Windows.Forms
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.5460 (Win7SP1GDR.050727-5400)
Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.5462 (Win7SP1GDR.050727-5400)
Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Versione assembly: 8.0.0.0
Versione Win32: 8.0.50727.5420 (Win7SP1.050727-5400)
Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
irrKlang.NET
Versione assembly: 1.3.0.0
Versione Win32: 1, 1, 0, 0
Base di codice: file:///C:/Matrix%20Games/Decisive%20Campaigns%20Case%20Blue/irrKlang.NET.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Versione assembly: 0.84.0.0
Versione Win32: 0.84.0.0
Base di codice: file:///C:/Matrix%20Games/Decisive%20Campaigns%20Case%20Blue/ICSharpCode.SharpZipLib.DLL
----------------------------------------
mscorlib.resources
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System.Windows.Forms.resources
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Debug JIT **************
Per attivare il debug JIT, è necessario impostare il valore
jitDebugging nella sezione system.windows.forms del file di configurazione
dell'applicazione o del computer (machine.config).
L'applicazione inoltre deve essere compilata con il debug
attivato.

Ad esempio:

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

Quando il debug JIT è attivato, tutte le eccezioni non gestite
vengono inviate al debugger JIT registrato nel computer,
anziché essere gestite da questa finestra di dialogo.




Image

RE: Crash at mouse click

Posted: Tue Aug 14, 2012 8:48 pm
by Sator
NOTE:
In this case I used a very non standard sequence of actions:

1) I selected an enemy unit.
2) I pushed the air attack button.
3) I selected and then deselected some air units.
4) I did not exit the air attack screen and selected some of my ground units.
5) I did not exit the air attack screen and I activated the CARDs menu.
6) I choosed and activated the card.
7) I selected the hex where to deploy the reinforcement unit.
8) I tryed to close the Henrici's window.

I hope this can help.

RE: Crash at mouse click

Posted: Tue Aug 21, 2012 12:26 pm
by Vic
Caught the bug. Will be fixed for v1.03!

Thanks a lot for taking the time to report and describe this with detail.

The workaround in the meantime is to not play a regime card while in the middle of issueing an order.

Kind regards,
Vic

RE: Crash at mouse click

Posted: Tue Aug 21, 2012 4:03 pm
by Toby42
Vic, isn't it great to be back [:)]

RE: Crash at mouse click

Posted: Tue Aug 21, 2012 10:12 pm
by Sator
ORIGINAL: Vic

The workaround in the meantime is to not play a regime card while in the middle of issueing an order.

Correct. But in the chaos of the battlefield everything can happen.

Thank you for your support, Vic!