Announcement

Collapse
No announcement yet.

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
    DierkNinjaTrader Customer Service

    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.
        DierkNinjaTrader Customer Service

        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 stafe, Today, 10:43 AM
            0 responses
            2 views
            0 likes
            Last Post stafe
            by stafe
             
            Started by UltraNIX, Today, 09:13 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by Tuxstuff215, Today, 06:32 AM
            1 response
            15 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by carlot, Today, 08:10 AM
            1 response
            19 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by KirkHammett, Yesterday, 11:15 PM
            1 response
            16 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Working...
            X