When click on "Fine Locs" it throws a unhandled exception.
Unhandled Exception
Object reference not set to an instance of an Object
Error
Moderators: Edgecrusher, Vladdy
-
- Newbie Spam Artist
- Posts: 512
- Joined: Tue Apr 05, 2005 10:23 am
- Location: Netherlands
Re: Error
I cannot reproduce that error. Can you be more specific, for example as to what map you have loaded? Did you make any manual changes, either in MGU or in the .smr file?
What version of the .Net framework do you have installed?
What version of the .Net framework do you have installed?
Re: Error
When I click "Find Locs" I get error, it does not matter what galaxy I have up. Maybe I am doing something wrong?
loaded map = Galactic Passage_2.smr
Made no changes to source files.
OS = XP
Framework = 3.5
MGU v1.51.2
![Image](http://video.smrealms.de/image/MGU.gif)
Here's the detail of the error.
loaded map = Galactic Passage_2.smr
Made no changes to source files.
OS = XP
Framework = 3.5
MGU v1.51.2
![Image](http://video.smrealms.de/image/MGU.gif)
Here's the detail of the error.
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 MGU.LocationDisplay.AddGoodsToMenu()
at MGU.LocationDisplay.LocationsChanged()
at MGU.LocationDisplay..ctor(MainStuff host)
at MGU.MainStuff.FindLocation()
at MGU.MainStuff.KnopKlik(Object sender, ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m)
at System.Windows.Forms.ToolBar.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.3082 (QFE.050727-3000)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MGU
Assembly Version: 1.51.2.0
Win32 Version: 1.51.2.0
CodeBase: file:///C:/MGU/MGU/MGU.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
************** JIT Debugging **************
-
- Newbie Spam Artist
- Posts: 512
- Joined: Tue Apr 05, 2005 10:23 am
- Location: Netherlands
Re: Error
Okay, I found the error. Forgot to initialize the goods menu. An update is available in the main thread.
Re: Error
Download it and work good.
Thanks
Question: Are you going to release the source code?
Thanks
Question: Are you going to release the source code?
-
- Newbie Spam Artist
- Posts: 512
- Joined: Tue Apr 05, 2005 10:23 am
- Location: Netherlands
Re: Error
I did include the source code with the first post, after that only minor changes have been made. Next update I will include the source code again.