Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Crash/JIT Debugging

 
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 >> Crash/JIT Debugging Page: [1]
Login
Message << Older Topic   Newer Topic >>
Crash/JIT Debugging - 12/1/2007 5:12:51 PM   
jakobrogert

 

Posts: 20
Joined: 11/14/2007
Status: offline
Hi!

I'm getting an unhandled exception in my masterfile during Unit editing, or more specifically when I click the Combat Details for the very first Unit. I've tried several solutions, such as making more Units and checking sfgroups for strange values etc.
Below is a screenshot and a debug message.

I am editing a stripped copy of the generic masterfile as a pt2-document and this thing with editing combat details has worked before on the same machine. I am using the 1.02b and XP SP2.
Oh. And the error says "Argument must be greater than or equal to Zero", but since I don't know which function is bothered by getting a bad argument data type or number I'm at a loss here.

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

************** Exception Text **************
System.ArgumentException: Argument 'Number' must be greater or equal to zero.
at Microsoft.VisualBasic.Strings.Space(Int32 Number)
at WindowsApplication1.SFTypeWindowClass.tabsheet3()
at WindowsApplication1.SFTypeWindowClass.Tabsheet()
at WindowsApplication1.SFTypeWindowClass.MakeSFtypeTypeItemGUI()
at WindowsApplication1.SFTypeWindowClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.MainEditScreenClass.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 WindowsApplication1.ImmoveableForm.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.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.2872.17755
Win32 Version: 1.0.2872.17755
CodeBase: file:///F:/games/Advanced%20Tactics/bin/AdvancedTactics.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
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.832 (QFE.050727-8300)
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.832 (QFE.050727-8300)
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:/games/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.







Attachment (1)

< Message edited by jakobrogert -- 12/1/2007 5:17:19 PM >
Post #: 1
RE: Crash/JIT Debugging - 12/1/2007 6:35:56 PM   
Vic


Posts: 8262
Joined: 5/17/2004
Status: offline
Will be fixed in v1.1. thanks for reporting.

You should be able to work around it by keeping the length of your SFType GROUP names ( in general settings tab) shorter then 25 characters.

let me know it that works.

kind regards,
vic

(in reply to jakobrogert)
Post #: 2
RE: Crash/JIT Debugging - 12/1/2007 7:00:37 PM   
jakobrogert

 

Posts: 20
Joined: 11/14/2007
Status: offline
Thank you lots! That worked!

(in reply to Vic)
Post #: 3
RE: Crash/JIT Debugging - 12/1/2007 11:29:59 PM   
PeterLorre86

 

Posts: 12
Joined: 12/1/2007
Status: offline
Hello, i just bought the game, and i get a similar error when clicking play from the menu.

Any help would be appreciated.

First i get this
VVVVV

************** Exception Text **************
System.ArgumentException: Font 'Arial' does not support style 'Regular'.
at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit)
at WindowsApplication1.GameClass..ctor()
at WindowsApplication1.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
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.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at WindowsApplication1.ImmoveableForm.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.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.2872.17755
Win32 Version: 1.0.2872.17755
CodeBase: file:///G:/Matrix%20Games/Advanced%20Tactics/bin/AdvancedTactics.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
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.1433 (REDBITS.050727-1400)
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.1433 (REDBITS.050727-1400)
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.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------

************** JIT Debugging **************


After clicking continue i get this-
VVVVVVVVVVVVVVVVVVVVVVVV


************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
  at WindowsApplication1.Form1.Form1_MouseMove(Object sender, MouseEventArgs e)
  at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)
  at System.Windows.Forms.Control.WmMouseMove(Message& m)
  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 WindowsApplication1.ImmoveableForm.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.832 (QFE.050727-8300)
   CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
   Assembly Version: 1.0.2872.17755
   Win32 Version: 1.0.2872.17755
   CodeBase: file:///G:/Matrix%20Games/Advanced%20Tactics/bin/AdvancedTactics.exe
----------------------------------------
System.Windows.Forms
   Assembly Version: 2.0.0.0
   Win32 Version: 2.0.50727.832 (QFE.050727-8300)
   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.832 (QFE.050727-8300)
   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.832 (QFE.050727-8300)
   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
----------------------------------------





< Message edited by PeterLorre86 -- 12/2/2007 12:10:50 AM >

(in reply to jakobrogert)
Post #: 4
RE: Crash/JIT Debugging - 12/2/2007 12:04:31 PM   
Vic


Posts: 8262
Joined: 5/17/2004
Status: offline
@petelorre,

actually that is very different bug.
and very unique!

do you have your fonts properly installed?
the game cannot find Arial (regular)...

could you give me your Operating System and System specs?

kind regards,
vic

(in reply to PeterLorre86)
Post #: 5
RE: Crash/JIT Debugging - 12/2/2007 6:35:11 PM   
rickier65

 

Posts: 14231
Joined: 4/20/2000
Status: offline

quote:

ORIGINAL: Vic

@petelorre,

actually that is very different bug.
and very unique!

do you have your fonts properly installed?
the game cannot find Arial (regular)...

could you give me your Operating System and System specs?

kind regards,
vic


Peter, (and Vic)

This bug has cropped up on a couple of two or three games over the last year. It hasn't happened to me, but it has to others. Unfortunately, I can't recall the fix. Jaamian or Erik might recall, seems he does some troubleshooting for another game.

a dxdiag might help - see the trhead on how to get dxdiag.

Rick

(in reply to Vic)
Post #: 6
RE: Crash/JIT Debugging - 12/2/2007 7:15:42 PM   
PeterLorre86

 

Posts: 12
Joined: 12/1/2007
Status: offline
Hello, and thanks for both your replies.

I have no idea if my fonts are installed properly, how do i check? I see alot of fonts named arial-something in the font folder, including one called 'arial' which i would assume is the original/regular version. Would it be possible to send me a copy of the correct font, and i could try putting that in my fonts directory and see what that does.

Operating system is XP, service pack 2. I have included the dxdiag results for system specs.

The basics are

3.0 ghz pentium 4 processor
radeon x850 pro videocard
3 gigs ram

Attachment (1)

(in reply to rickier65)
Post #: 7
RE: Crash/JIT Debugging - 12/2/2007 7:28:16 PM   
Vic


Posts: 8262
Joined: 5/17/2004
Status: offline
does this thread make any sense:

http://www.matrixgames.com/forums/tm.asp?m=1600016&mpage=1&key=System%2EDrawing%2EFont%2ECreateNativeFont&#1600016

also check this MS article about how to re-install fonts:
http://www.styopkin.com/articles/install_fonts.html

kind regards,
Vic

(in reply to PeterLorre86)
Post #: 8
RE: Crash/JIT Debugging - 12/2/2007 7:35:21 PM   
PeterLorre86

 

Posts: 12
Joined: 12/1/2007
Status: offline
That thread was my exact problem, and the re-installing fonts worked perfectly!

Thanks alot!

(in reply to Vic)
Post #: 9
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Advanced Tactics Support >> Crash/JIT Debugging 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

8.812