CTD out of bounds error

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

Moderator: Vic

Post Reply
pad152
Posts: 2835
Joined: Sun Apr 23, 2000 8:00 am

CTD out of bounds error

Post by pad152 »

CTD out of bounds error

Received the following game crash during a random game when clicking next turn.

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.HandyFunctionsclass.MakeMovePrediction2(Int32 byregnr, Int32 movetype, Int32 theater, Int32 ap, Int32 x, Int32 y, Boolean checkairfield, Boolean dontenterenemy, Boolean allowshoredrop, Boolean muststartonairfield, Boolean NoAPPenalties, Boolean SeaBlock, Boolean BlockAllSea, Boolean istransfer, Boolean EngineerTest, Boolean EnemyPenalty, Boolean IsForSupplyLayer, Int32 redux)
at WindowsApplication1.ProcessingClass.LocationProduction()
at WindowsApplication1.GameLoopMainWindowClass.handleTimer()
at WindowsApplication1.ScreenClass.HandleTimer()
at WindowsApplication1.Form1.Timer1_Tick(Object sender, EventArgs e)
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: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.2854.17237
Win32 Version: 1.0.2854.17237
CodeBase: file:///F:/Matrix%20Games/Advanced%20Tactics/bin/AdvancedTactics.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
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.42 (RTM.050727-4200)
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.42 (RTM.050727-4200)
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.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///F:/Matrix%20Games/Advanced%20Tactics/bin/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.

User avatar
Stridor
Posts: 1391
Joined: Sat Sep 08, 2007 11:01 am

RE: CTD out of bounds error

Post by Stridor »

Code: Select all

 function MakeMovePrediction2(Int32 byregnr, Int32 movetype, Int32 theater, Int32 ap, Int32 x, Int32 y, Boolean checkairfield, Boolean dontenterenemy, Boolean allowshoredrop, Boolean muststartonairfield, Boolean NoAPPenalties, Boolean SeaBlock, Boolean BlockAllSea, Boolean istransfer, Boolean EngineerTest, Boolean EnemyPenalty, Boolean IsForSupplyLayer, Int32 redux) 
My god that function takes a crap load of arguments! No wonder there is an index out of bounds in there [;)]
User avatar
Vic
Posts: 9931
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: CTD out of bounds error

Post by Vic »

hi pad152,
&nbsp;
if you might have a savefile as close as possible as when it happened that would be appreciated.
if you have please mail it to: vic@xs4all.nl
&nbsp;
kind regards,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
User avatar
Vic
Posts: 9931
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: CTD out of bounds error

Post by Vic »

oohh and although i knew this would happen. bugs turning up after release. going from like a few testers to a lot more...
i am still sorry that there are any left apparenly anyway. next game is should&nbsp;get to 0 bugs on release. :)
&nbsp;
in the meantime with AT i promise undying support to squash any bug&nbsp;that might turn up.
&nbsp;
&nbsp;
&nbsp;
&nbsp;
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
User avatar
Vic
Posts: 9931
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: CTD out of bounds error

Post by Vic »

ohh and pad,
&nbsp;
if you dont have the savefile, can you remember if there was something special of the situation the AI was in?
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
pad152
Posts: 2835
Joined: Sun Apr 23, 2000 8:00 am

RE: CTD out of bounds error

Post by pad152 »

Vic

Update:
In a second random game with different settings, I got a CTD with another out of bounds array error, I send you a second same game file.

I just sent you the saved game file, just load it and click next turn, it CTD's with an out of bounds array error.
If you don't get it let me know.


Thanks







User avatar
Vic
Posts: 9931
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: CTD out of bounds error

Post by Vic »

i fixed and you will be able to continue your saved games after the first patch is there. i am trying to get it out ASAP.

thanks for keeping with me and reporting this bug.
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
StormcloudCreations
Posts: 209
Joined: Fri Jul 14, 2006 2:53 pm

RE: CTD out of bounds error

Post by StormcloudCreations »

ORIGINAL: Stridor

Code: Select all

 function MakeMovePrediction2(Int32 byregnr, Int32 movetype, Int32 theater, Int32 ap, Int32 x, Int32 y, Boolean checkairfield, Boolean dontenterenemy, Boolean allowshoredrop, Boolean muststartonairfield, Boolean NoAPPenalties, Boolean SeaBlock, Boolean BlockAllSea, Boolean istransfer, Boolean EngineerTest, Boolean EnemyPenalty, Boolean IsForSupplyLayer, Int32 redux) 
My god that function takes a crap load of arguments! No wonder there is an index out of bounds in there [;)]

Yep, now THAT is a function call, boys and girls. Don't think i've ever had one with quite that many arguments, 18 of them.
Nice work tracking it down quickly, Vic. [:)]
Derek
Lead Programmer of Hornet Leader PC
Mindtoy Games - Unique Strategy/Board/Card games for the PC - mindtoygames.com
Post Reply

Return to “Advanced Tactics Support”