Matrix Games Forums

A new update for Piercing Fortress EuropaNew screenshots for War in the West!Pike & Shot is now available!Server Maintenance Battle Academy 2 gets updated!Deal of the Week: Advanced Tactics Gold Ask Buzz Aldrin!Pike & Shot gets Release Date and Twitch Session!Deal of the Week Espana 1936War in the West coming in December!
Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

CTD while editing a masterfile

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Advanced Tactics Support >> CTD while editing a masterfile Page: [1]
Login
Message << Older Topic   Newer Topic >>
CTD while editing a masterfile - 4/29/2013 5:42:06 AM   
Ormand

 

Posts: 115
Joined: 2/17/2009
Status: offline
I had a CTD while I was working on a masterfile based on the original "New Dawn" 2.14 masterfile under Windwos 7. I've been reworking the graphics I made almost two years ago, and restructured the masterfile from scratch. Basically, I deleted all terrains and started over. I did this because I switched to four seasons and used interior graphics for cities, much like DC, and the original structure caused problems. I added a few terrains for the seasons, as well as two new desert terrains. In order to make things look better I also used borders to make the transitions between seasons for mountains look good, as well as for forests. In the end, I had 72 terrains (starting from 0) with twelve of them being borders. The problem started when I had decided that I also was going to add some units, and made some NATO counters, and was replacing the counters. About halfway into the process I got a CTD and was never able to complete the change. I am afraid that you are going to say that the problem is lack of memory. When I hit "del" I get the measurements of 51985 KB for the GUI and 118996 KB for Bitmapstore. As I change the counters, Bitmapstore increases slightly (~ 10 KB) for each counter. Before I tried this, I was able to generate many maps with no problems. I also checked that the terrains changed with time as I planned with seasons by running a game without actually playing it. I haven't yet played a real game with this particular masterfile, although I did with an earlier masterfile that had even more terrains, and it crashed after 20 turns (I don't have the error log for that one as I was caught by surprise).

The error I get generates the following message:

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

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at WindowsApplication1.MapPartClass.ShiftUp()
at WindowsApplication1.MapWindowClass.HandleKeyPress(Int32 nr)
at WindowsApplication1.MapWindowClass.handleTimer()
at WindowsApplication1.MainEditScreenClass.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:
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.4821.34835
Win32 Version: 1.0.4821.34835
CodeBase: file:///C:/Matrix%20Games/Advanced%20Tactics%20Gold/AdvancedTacticsGold.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version:
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.5467 (Win7SP1GDR.050727-5400)
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.5467 (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.5420 (Win7SP1.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:///C:/Matrix%20Games/Advanced%20Tactics%20Gold/irrKlang.NET.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///C:/Matrix%20Games/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.


Post #: 1
RE: CTD while editing a masterfile - 4/30/2013 9:07:34 AM   
Vic


Posts: 3670
Joined: 5/17/2004
Status: offline
I am going to have to do a new small patch for ATG soon now. When I am back in office next week i'll get on it.

This bug should be related to a recent Windows7 update that changes the way Windows does memory management on some systems.

This workaround should fix this issue for now:
-Remove Windows Update KB2670838

Best regards,
Vic

_____________________________

Victor Reijkersz Designs
www.vrdesigns.nl

(in reply to Ormand)
Post #: 2
RE: CTD while editing a masterfile - 5/1/2013 6:19:20 AM   
Ormand

 

Posts: 115
Joined: 2/17/2009
Status: offline
That's good news. I can wait a week or so. I have been working on this for a year, so I don't need to hurry. I've started a new dawn game so I want to see if I have bugs before I go for the full masterfile.

(in reply to Ormand)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Advanced Tactics Support >> CTD while editing a masterfile Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.065