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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      370 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      239 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      205 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      292 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      253 views
      0 likes
      Last Post CarlTrading  
      Working...
      X