Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How can I load/unload external dll not exiting NT every time?

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

    How can I load/unload external dll not exiting NT every time?

    Hi I have custom dll which is referenced in NT strategy script.

    I found that the dll is being loaded by NT when it starts and it seems it locks it until the exit.

    Therefore to test every change I have to exit NT, recompile in VS, start NT, connect to data, run strategy...

    Quite boring and time-consuming nonsence.

    Can you guys please do something that external dll bound/unbound on start/stop strategy which uses it.

    In case with custom indicator you can reload the change by F5.

    You have to provide something similar to users of custom dlls.

    #2
    I will forward this to development for consideration.
    RayNinjaTrader Customer Service

    Comment


      #3
      I second Maxima's suggestion, it causes huge loss of productivity.
      I wish that this aspect to be addressed ASAP.

      thanks, (no replies needed, was just bump..)

      Comment


        #4
        i second the idea. i believe that NT loads all the dependenet dlls on startup rather than strategy startup.

        Comment


          #5
          Hello,

          Thank you for your suggestion. I will send it to our development department for consideration.
          DenNinjaTrader Customer Service

          Comment


            #6
            This is a .NET limitation: You can't unload assmebleis at runtime unless they would be located in a different AppDomain which would not work for NT, since there would be severe performance impact.

            Comment


              #7
              That's right.

              You cannot unload only 1 assembly (dll) file. You have to unload all assemblies, meaning all assemblies NT uses, which would be a killer in performance.

              I have read things about external assembly loader / stub.exe? Anyone have any idea on this, or if it could even work with NT?
              mrlogik
              NinjaTrader Ecosystem Vendor - Purelogik Trading

              Comment


                #8
                AFAIK, you can't even unload "all" assemblies (not talking about native code DLLs here!) without restarting the hosting .exe.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by ScottWalsh, 04-16-2024, 04:29 PM
                6 responses
                27 views
                0 likes
                Last Post ScottWalsh  
                Started by frankthearm, Today, 09:08 AM
                10 responses
                35 views
                0 likes
                Last Post frankthearm  
                Started by GwFutures1988, Today, 02:48 PM
                0 responses
                3 views
                0 likes
                Last Post GwFutures1988  
                Started by mmenigma, Today, 02:22 PM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by NRITV, Today, 01:15 PM
                2 responses
                9 views
                0 likes
                Last Post NRITV
                by NRITV
                 
                Working...
                X