xna games crashing

Started by
0 comments, last by JustJim 9 years, 7 months ago

i recentley reinstalled the game and started having an issue that wasnt happening last time,

the game open normally and i am presented with the menu, if i click any button i get an error.

Unhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue.

object reference not set to an instance of an object.

it wont let me click any of the buttons on the popup they say details continue and quit, none of them work.

any ideas please? as i would like to try the new features and i have looked online but cant find a solution. i tried all those steps in the forum, deleting the settings, reinstalling the frameworks, and xna, and direct x, no change.


any help would be appreciated.

thanks

the error is

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

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.MouseEventArgs..ctor(MouseButtons button, Int32 clicks, Int32 x, Int32 y, Int32 delta)
at System.Windows.Forms.Control.WmMouseUp(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.Form.WndProc(Message& m)
at Microsoft.Xna.Framework.WindowsGameForm.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: 4.0.0.0
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR

----------------------------------------
Signs Of Life
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0

----------------------------------------
Microsoft.Xna.Framework.Game
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30901.0

----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34003 built by: FX45W81RTMGDR

----------------------------------------
log4net
Assembly Version: 1.2.11.0
Win32 Version: 1.2.11.0

----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

----------------------------------------
Steamworks.NET
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0

----------------------------------------
Microsoft.Xna.Framework
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30901.0 built by: xnabldr

----------------------------------------
Microsoft.Xna.Framework.Graphics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30901.0 built by: xnabldr

----------------------------------------
Microsoft.Xna.Framework.Input.Touch
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30901.0

----------------------------------------
Microsoft.Xna.Framework.Xact
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30901.0 built by: xnabldr

----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.86.0
Win32 Version: 1.0.86.0

----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

----------------------------------------
ProjectMercury
Assembly Version: 3.1.0.0
Win32 Version: 3.1.0.0

----------------------------------------
DeminaRuntime
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0

----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

----------------------------------------
Lidgren.Network
Assembly Version: 2012.1.7.0
Win32 Version: 2012.1.7.0

----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL

----------------------------------------
Microsoft.Xna.Framework.GamerServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30901.0

----------------------------------------

************** 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.
not sure why everything has a black line throught it :(
Advertisement

Well If I had to guess, it seems like the someone used something like this:

The Instance of the Object is set to NULL due some issues and did not receive a reference again, so it still points to NULL.

In that case the Methodes cannot be called.

(Other than using non static Object-Methodes like this:

Classname.Methode()

instead of

Classname name = new Classname();

name.Methode().

Cuz this won't even compile)

In this scenario you cannot change anything from your position aslong as you cannot alter the code to fix it.

This topic is closed to new replies.

Advertisement