Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NTDirect.dll memory leak

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

    #16
    Originally posted by NinjaTrader_ChelseaB View Post
    Hello Atomic,

    I was seeing the application close when using the NTDirect.dll. I will look further into this.

    Using the NinjaTrader.Client.dll was successful, and after running this method 3 times a second for 4 minutes I was not seeing any uncontrolled memory growth.

    Below is a link to a video of the test.
    https://drive.google.com/file/d/1-CQ...w?usp=drivesdk

    Testing the same on your end are you getting different behavior?
    I don't question your test results. However, in the original version of NtDirect that I got, there were these functions:
    SetAllocReturnString(1); { alloc memory for returned string, TS will free that memory }
    SetMaxReturnStringLength(500); { limit the max length of return string to 500​

    The comments were from Ninjatrader (or the developer).
    My problem is with virtual memory leaking in Tradestation, and it only happens on the version where I am heavily using Ninjatrader
    and using the NtDirect function calls from Easylanguage. The comments above suggest that the developer assumed that
    Tradestation would clean up the memory, but it isn't. The above functions still work in the current version of NtDirect, so, in my
    view, the problem could still be there as it was in NT7.

    I think we are at an impasse on this because Tradestation has no interest in modifying its software to accommodate a third party
    application, and I think it is fair to say the same of Ninjatrader (or the NtDirect developer).

    I apologize for taking up so much of your time.

    Comment


      #17
      Hello Atomic,

      The test was to see if the issue is with the NinjaTrader API being interfaced with an external application causing that application to grow in memory. As in, if this is something NinjaTrader is causing, it should be promptly reported to our development.

      As the test application is not able to reproduce and does not have an uncontrolled memory leak, but is able to interface with the API and request order ids from an external custom application, this would indicate the issue is with TradeStation and should be reported to TradeStation. There could be a possibility of how the orders are being stored and classes being made internally in TradeStation.

      Just as a reminder, we cannot support the EasyLanguage files for NinjaTrader 8 and these are not available from the NinjaTrader 8 help guide.

      There is another way. Use the email interface with NinjaTrader instead of the NtDirect route.

      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      602 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      347 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      560 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      559 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X