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

Multiple DLL Error

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

    Multiple DLL Error

    I have created an indicator that seemed to be working yesterday, but today I am getting a strange error.
    Error:
    The type ‘NinjaTrader.Indicator.mtGlobal’ exists in both ‘d17811e4f9824c0984629d0e5dfeaa32.dll’ and ‘a14dbb24608e45329d131d83e9991179.dll’
    I have created a class in the NinjaTrader.Indicator namespace to share some variables relating to multiple running charts. Each chart then accesses these variables to determine the appropriate action. The problem I am having is apparently because the mtGlobal type exists in 2 different dll files (that I assume are being created by NinjaTrader).

    Code:
    [INDENT] [I]namespace NinjaTrader.Indicator[/I]
     [I]{[/I]
     [I]    public class mtGlobal[/I]
     [I]    {[/I]
     [I]        public static frmMain BacktestForm = null;[/I]
     [I]        public static List<Indicator> ActiveCharts = new  List<Indicator>();[/I]
     [I]        public static List<mtTrade> ActiveTrades = new  List<mtTrade>();[/I]
     [I]        public static List<mtTradeDisplay> DisplayTrades = new  List<mtTradeDisplay>();        [/I]
     [I]        public static mtTrade TempTrade = null;[/I]
     [I]        public static bool BuyMode = false, SellMode =  false;[/I]
     [I]    }[/I]
      
     [I]    public class mtTester : Indicator[/I]
     [I]    {[/I]
     [I]        protected override void OnBarUpdate()[/I]
     [I]        {[/I]
     [I]            if (mtGlobal.BuyMode || mtGlobal.SellMode)[/I]
     [I]                // do some code here[/I]
     [I]        }[/I]
     [I]}[/I]
    [/INDENT]
    Any ideas how I can resolve the issue?

    #2
    SystemTrading,

    Thank you for your post.

    Did you have other Custom DLLs in the custom folder when you originally exported this assembly?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      I am not trying to export the code. I am receiving this error when I am running the unlocked code on my computer. I am also not referencing any .DLL files in my indicator (other than those that NT always references).

      Comment


        #4
        SystemTrading,

        Would you please send me a request to support[at]ninjatrader[dot]com

        Additionally, please send me your log and trace files as well

        You will find the log file on your PC in the (My) Documents > NinjaTrader 7 > Log folder.

        The log file will be named "log.20131217.txt"

        You will find the trace file on your PC in the (My) Documents > NinjaTrader 7 > Trace folder.

        The trace file will be named "trace.20131217.txt"
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          I tried sending this as an email 3 times before I posted on the forum. I just tried again. Hopefully you receive it.

          Comment


            #6
            I received about 20 messages this morning saying that NinjaTrader's server is rejecting my emails due to spam content (the only attachments were the log and trace files). Is there another email address I can try, or is it possible to have someone call/skype me for assistance?

            Comment


              #7
              SystemTrading,

              That's fine we can do a remote support setup. I sent you a private message here on the forum.
              Cal H.NinjaTrader Customer Service

              Comment


                #8
                What resolved this issue?

                Hey, I've ran into the same situation...What seemed to do the trick eventually?

                Thanks

                Comment


                  #9
                  Hello ahadari28,

                  Thank you for your response.

                  It is possible the cache was holding references that no longer existed. Each case can be very different. What is the full message you are receiving? What action are you performing when the message is received?

                  I look forward to your response.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by algospoke, 04-17-2024, 06:40 PM
                  6 responses
                  49 views
                  0 likes
                  Last Post algospoke  
                  Started by arvidvanstaey, Today, 02:19 PM
                  4 responses
                  11 views
                  0 likes
                  Last Post arvidvanstaey  
                  Started by samish18, 04-17-2024, 08:57 AM
                  16 responses
                  61 views
                  0 likes
                  Last Post samish18  
                  Started by jordanq2, Today, 03:10 PM
                  2 responses
                  11 views
                  0 likes
                  Last Post jordanq2  
                  Started by traderqz, Today, 12:06 AM
                  10 responses
                  21 views
                  0 likes
                  Last Post traderqz  
                  Working...
                  X