Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unhandled Exception

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Unhandled Exception

    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/fra...2/mscorlib.dll
    ----------------------------------------
    NinjaTrader Version 4
    Assembly Version: 1.0.1861.15716
    Win32 Version: 1.0.1861.15716
    CodeBase: file:///C:/Program%20Files/NinjaTrad...ersion%204.exe
    ----------------------------------------
    System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/syst...em.drawing.dll
    ----------------------------------------
    TradeMagic.Cbi
    Assembly Version: 2.0.1861.16086
    Win32 Version: 2.0.1861.16086
    CodeBase: file:///C:/Program%20Files/NinjaTrad...eMagic.Cbi.DLL
    ----------------------------------------
    System.Data
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/syst...ystem.data.dll
    ----------------------------------------
    System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/syst...089/system.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/syst...system.xml.dll
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly Version: 7.0.5000.0
    Win32 Version: 7.10.6001.4
    CodeBase: file:///c:/windows/assembly/gac/micr...isualbasic.dll
    ----------------------------------------
    TradeMagic.Db
    Assembly Version: 1.0.1861.16094
    Win32 Version: 1.0.1861.16094
    CodeBase: file:///C:/Program%20Files/NinjaTrad...deMagic.Db.DLL
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/syst...dows.forms.dll
    ----------------------------------------
    PositionParamterTabs
    Assembly Version: 1.0.1861.15706
    Win32 Version: 1.0.1861.15706
    CodeBase: file:///C:/Program%20Files/NinjaTrad...ramterTabs.DLL
    ----------------------------------------
    btnFraction
    Assembly Version: 1.0.1861.15704
    Win32 Version: 1.0.1861.15704
    CodeBase: file:///C:/Program%20Files/NinjaTrad...tnFraction.DLL
    ----------------------------------------
    nudtest
    Assembly Version: 1.0.1861.15704
    Win32 Version: 1.0.1861.15704
    CodeBase: file:///C:/Program%20Files/NinjaTrad...in/nudtest.DLL
    ----------------------------------------
    System.Management
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/syst...management.dll
    ----------------------------------------
    TradeMagic.IB
    Assembly Version: 2.0.1861.16096
    Win32 Version: 2.0.1861.16096
    CodeBase: file:///C:/Program%20Files/NinjaTrad...deMagic.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.



    Attached Files

    #2
    imported post

    Try deleting the following file and restart -

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


    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      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

      Comment


        #4
        imported post

        DEMO1 is for sim, are you a subscriber? If yes, enter your license code.
        RayNinjaTrader Customer Service

        Comment


          #5
          imported post

          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...

          Comment


            #6
            imported post

            Light Edition is the simulation only version. Is this not what you wanted?
            RayNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by KennyK, 05-29-2017, 02:02 AM
            3 responses
            1,282 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by AttiM, 02-14-2024, 05:20 PM
            11 responses
            184 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by fernandobr, Today, 09:11 AM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by timmbbo, Today, 08:59 AM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by itrader46, Today, 09:04 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Working...
            X