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

NT restart required when referencing an external dll

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

    NT restart required when referencing an external dll

    I call some methods from a custom dll. It compiles without a problem, except when I add the strategy to the chart, non of the expected behaviour occurs, i.e. the strategy code does not do anything, and no errors occur. Also intellisense does not work in the Strategy for the new classes and methods in the custom dll.

    To make it work, all I have to do is shut down NT (beta 4) and restart it. I go into my program and recompile for good measure...and it works as it should.

    A seperate issue: Are the references for each strategy accumalative? If I have two strategies A and B, and each strategy requires its own different reference to a dll, eg. dll_1 and dll_2, then when compiling Strategy A, I am forced to reference the dll that is used for Strategy B as well. If I don't, then I get a compilation error for Strategy B, even though I am trying to compile strategy A.

    #2
    >> I call some methods from a custom dll
    Unfortunately referencing external DLLs is beyond of what we can support (although it works). Please contact a NinjaScript consultant if you need further assistance: http://www.ninjatrader.com/webnew/pa...injaScript.htm

    Comment


      #3
      I understand that external dll's are not supported. However, you might want these issues raised, especially as the evidence is pointing towards a problem in NT? This may be the effect of some other problem, that you may want to fix.
      Let me know if you would prefer that we don't raise dll issues.

      Comment


        #4
        Unfortunately referencing external DLLs is beyond of what we can support. If you feed there is a problem with NT itself: please isolate without usage of any external DLL and let us know.

        Comment


          #5
          External DLL

          Did you ever figure out a fix for this? I'm having the same issue.

          Comment


            #6
            I still use the workaround. My understanding is that when you reference a dll, not just in NT, but generally, whatever is referencing the dll, puts a lock on the dll file. If you create a new version of a dll and try to overwrite the existing one, then you receive the message that the existing dll cannot be overwritten because it is in use. That is why I have to shut down NT (to release the lock), so that I can overwrite the existing dll with a newer version.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CommonWhale, Today, 09:55 AM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by Gerik, Today, 09:40 AM
            2 responses
            7 views
            0 likes
            Last Post Gerik
            by Gerik
             
            Started by RookieTrader, Today, 09:37 AM
            2 responses
            12 views
            0 likes
            Last Post RookieTrader  
            Started by alifarahani, Today, 09:40 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by KennyK, 05-29-2017, 02:02 AM
            3 responses
            1,285 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Working...
            X