Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DLL Hell

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

    DLL Hell

    We have created a custom dll which allows Tradestation 10(68) to work with NinjaTrader.Client.dll. It works in some cases and others not. Here are the instances:
    OS TS NT Status
    Windows server 2019 10(68) 8.0.28.0 Good
    Windows 11 (22621.1928) 10(68) 8.0.27.1 No good
    Windows 11 (22621.1848) 10(68) 8.0.28.0 No good
    Windows 11 (22621.1778) 10(68) 8.0.27.1 Good
    ​Can anyone explain this? The no good means that the dll return C++ exception when called from Easylanguage.
    Good means that the function return is as expected.

    Copying the dll from one of the working instances to one of the non-working instances does no good.
    Last edited by Atomic; 07-01-2023, 06:24 AM.

    #2
    You probably have some differences in the .NET Frameworks between those installations or perhaps Visual C++ Runtimes. It could also be that something is blocking it that you are not aware of e.g. antivirus or antimalware.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Originally posted by QuantKey_Bruce View Post
      You probably have some differences in the .NET Frameworks between those installations or perhaps Visual C++ Runtimes. It could also be that something is blocking it that you are not aware of e.g. antivirus or antimalware.
      .Net Frameworks are all the same. One of the machines producing the error is the one where the dll is created using VS 2022, so it should handling the C++. Initially, when created, this same machine would run the dll, but now it doesn't after some intervening updates of Ninjatrader and Windows.

      Comment


        #4
        That does sound like a big ol' mess. Let us know what you find out please.
        Bruce DeVault
        QuantKey Trading Vendor Services
        NinjaTrader Ecosystem Vendor - QuantKey

        Comment


          #5
          This problem got resolved by using
          C:\Windows\Microsoft.NET\Framework\v4.0.30319\rega sm.exe "C:\Program Files\NinjaTrader 8\bin\NinjaTrader.Client.dll" /codebase
          instead of
          C:\Windows\Microsoft.NET\Framework64\v4.0.30319\re gasm.exe "C:\Program Files\NinjaTrader 8\bin\NinjaTrader.Client.dll" /codebase

          This gets run from an elevated command prompt.

          Comment


            #6
            One more thing. If you roll back from v8.1 to 8.0 you may need to use an uninstaller that will delete registry keys or manually go through and find any keys referencing 8.1 and delete them before the Ninjatrader.Client.dll can be used with the 8.0 version.

            Comment


              #7
              Great. Thank you for letting us know what you found.
              Bruce DeVault
              QuantKey Trading Vendor Services
              NinjaTrader Ecosystem Vendor - QuantKey

              Comment


                #8
                Hello Atomic,

                Just to provide a support response here, this would not be something our support could assist with. The dll which tradestation used to use is no longer supported for that use case so what you have developed would be something only you would be able to debug. The only supported way to use tradestation is through the email interface.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                72 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                43 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                25 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                28 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                59 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X