PDA

View Full Version : Unhandled Exception


HudsonTrader
02-04-2005, 05:34 AM
I am getting "An unhandled exception..." error as follows; when I try to enter a position strategy order through the Dom

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 NinjaTrader_Version_4.Synchronization.Update(Posit ion& position)
at NinjaTrader_Version_4.PositionCollection._orderSta tusChange(Order order)
at NinjaTrader_Version_4.OrderStatusChangeEventHandle r.Invoke(Order order)
at NinjaTrader_Version_4.Position.orderStatusChangeHa ndler(Order order)
at NinjaTrader_Version_4.Order.set_OrderStatus(OrderS tatus Value)
at NinjaTrader_Version_4.OrderCollection.OrderStatusC hange(OrderData orderData)
at NinjaTrader_Version_4.SimulatorBroker._announceOrd erStatus(OrderData orderData)
at NinjaTrader_Version_4.SimulatorOrder._delayTimer_T ick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.Callback(IntPtr hWnd, Int32 msg, IntPtr idEvent, IntPtr dwTime)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
NinjaTrader Version 4
Assembly Version: 1.0.1861.15716
Win32 Version: 1.0.1861.15716
CodeBase: file:///C:/Program%20Files/NinjaTrader%204/bin/NinjaTrader%20Version%204.exe
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
TradeMagic.Cbi
Assembly Version: 2.0.1861.16086
Win32 Version: 2.0.1861.16086
CodeBase: file:///C:/Program%20Files/NinjaTrader%204/bin/TradeMagic.Cbi.DLL
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
TradeMagic.Db
Assembly Version: 1.0.1861.16094
Win32 Version: 1.0.1861.16094
CodeBase: file:///C:/Program%20Files/NinjaTrader%204/bin/TradeMagic.Db.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
PositionParamterTabs
Assembly Version: 1.0.1861.15706
Win32 Version: 1.0.1861.15706
CodeBase: file:///C:/Program%20Files/NinjaTrader%204/bin/PositionParamterTabs.DLL
----------------------------------------
btnFraction
Assembly Version: 1.0.1861.15704
Win32 Version: 1.0.1861.15704
CodeBase: file:///C:/Program%20Files/NinjaTrader%204/bin/btnFraction.DLL
----------------------------------------
nudtest
Assembly Version: 1.0.1861.15704
Win32 Version: 1.0.1861.15704
CodeBase: file:///C:/Program%20Files/NinjaTrader%204/bin/nudtest.DLL
----------------------------------------
System.Management
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.management/1.0.5000.0__b03f5f7f11d50a3a/system.management.dll
----------------------------------------
TradeMagic.IB
Assembly Version: 2.0.1861.16096
Win32 Version: 2.0.1861.16096
CodeBase: file:///C:/Program%20Files/NinjaTrader%204/bin/TradeMagic.IB.DLL
----------------------------------------
dom
Assembly Version: 1.0.1861.15706
Win32 Version: 1.0.1861.15706
CodeBase: file:///C:/Program%20Files/NinjaTrader%204/bin/dom.DLL
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (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 machine
rather than being handled by this dialog.

NinjaTrader_Ray
02-04-2005, 05:42 AM
Try deleting the following file and restart -

C:\Program Files\NinjaTrader 4\Data\AccountData.xml

HudsonTrader
02-04-2005, 06:14 AM
It worked....! Thank you for the prompt and accurate response.

It did not let me use the DEMO1 License anymore and asked me to switch to Light.. I did... still running sim

NinjaTrader_Ray
02-04-2005, 06:58 AM
DEMO1 is for sim, are you a subscriber? If yes, enter your license code.

HudsonTrader
02-04-2005, 07:08 AM
I am not a subscriber yet and was using Demo1 for license on sim only but it does not let me use it anymore and ask me to do license as light. It onli gives me the sim accnt option. I will become a subscriber in a little less than two weeks...

NinjaTrader_Ray
02-04-2005, 09:50 AM
Light Edition is the simulation only version. Is this not what you wanted?