Error on selecting pref tab game then freezes

Moderator: Decisive Campaigns Ardennes Offensive Mods

Post Reply
comsolut
Posts: 488
Joined: Sun May 30, 2004 8:13 pm

Error on selecting pref tab game then freezes

Post by comsolut »

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.LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format, BitmapData bitmapData)
at System.Drawing.Bitmap.LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format)
at WindowsApplication1.DrawMod.CopyPerLine(Bitmap& from, Bitmap& dest, Int32 fx, Int32 fy, Int32 fw, Int32 fh, Int32 x, Int32 y) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\DrawMod.vb:line 1179
at WindowsApplication1.DrawMod.DrawSimplePart2Fast(Graphics& objGraphics, Bitmap& sourceBitmap, Bitmap& destBitmap, Rectangle srcrect, Rectangle destrect) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\DrawMod.vb:line 1838
at WindowsApplication1.ScreenClass.Paint(Boolean onlyToolTip) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Screens\ScreenClass.vb:line 459
at WindowsApplication1.Form1.PaintScreeny(Rectangle rect) in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 2835
at WindowsApplication1.Form1.PaintScreeny() in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 2682
at WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e) in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 1840
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.Form.WndProc(Message& m)
at WindowsApplication1.ImmoveableForm.WndProc(Message& m) in G:\VR\VRDevelopment\WindowsApplication1\ImmoveableForm.vb:line 68
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9167.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.8577.31318
Win32 Version: 1.0.8577.31318
CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Decisive%20Campaigns%20Ardennes%20Offensive/Ardennes.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9166.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9166.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9075.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
irrKlang.NET4
Assembly Version: 1.0.6617.18847
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Decisive%20Campaigns%20Ardennes%20Offensive/irrKlang.NET4.DLL
----------------------------------------
SharpDX.Mathematics
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Decisive%20Campaigns%20Ardennes%20Offensive/SharpDX.Mathematics.DLL
----------------------------------------
SharpDX.Direct2D1
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Decisive%20Campaigns%20Ardennes%20Offensive/SharpDX.Direct2D1.DLL
----------------------------------------
SharpDX
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Decisive%20Campaigns%20Ardennes%20Offensive/SharpDX.DLL
----------------------------------------
SharpDX.DXGI
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Decisive%20Campaigns%20Ardennes%20Offensive/SharpDX.DXGI.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Decisive%20Campaigns%20Ardennes%20Offensive/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
Vic
Posts: 9622
Joined: Mon May 17, 2004 2:17 pm
Contact:

Re: Error on selecting pref tab game then freezes

Post by Vic »

Hi. Thanks for reporting!

Does this always happen? Or was it a one off?

Did you already try re-installing?

Could you tell me the following:

-Your operating system
-Your game version
-Your screen resolution

best wishes,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
waltshumate
Posts: 11
Joined: Thu Dec 13, 2012 5:36 pm

Re: Error on selecting pref tab game then freezes

Post by waltshumate »

I am getting the same issue. Windows 10 1280x1024 Version 1.06.00

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.LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format, BitmapData bitmapData)
at System.Drawing.Bitmap.LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format)
at WindowsApplication1.DrawMod.CopyPerLine(Bitmap& from, Bitmap& dest, Int32 fx, Int32 fy, Int32 fw, Int32 fh, Int32 x, Int32 y)
at WindowsApplication1.DrawMod.DrawSimplePart2Fast(Graphics& objGraphics, Bitmap& sourceBitmap, Bitmap& destBitmap, Rectangle srcrect, Rectangle destrect)
at WindowsApplication1.ScreenClass.Paint(Boolean onlyToolTip)
at WindowsApplication1.Form1.PaintScreeny(Rectangle rect)
at WindowsApplication1.Form1.PaintScreeny()
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.Form.WndProc(Message& m)
at WindowsApplication1.ImmoveableForm.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
User avatar
Vic
Posts: 9622
Joined: Mon May 17, 2004 2:17 pm
Contact:

Re: Error on selecting pref tab game then freezes

Post by Vic »

Hi Walt,
Sorry for the late reply.
Thanks for Win version + screen res.

But does this happen often, all the time or only on rare occasions?

I am asking because I am having trouble replicating the issue.

Do you have any windows-based DPI set by any chance?

And are you 100% sure about your screen resolution? is it your windows resolution, or your in-game resolution? and if the latter is there a difference between windows res and game res?

best wishes,
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: 9622
Joined: Mon May 17, 2004 2:17 pm
Contact:

Re: Error on selecting pref tab game then freezes

Post by Vic »

For the case its intermittent i have already added some fallback code for the next version in case this error reproduces.

But I would still like to get to the bottom of this.

The Prefs window really needs the 1280 pixels of width... so there must be something thats off with this specific case... could it be you are playing in windowed mode on an actual 1280x1024 windows resolution?
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Post Reply

Return to “Tech Support”