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

Reference conflict

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

    Reference conflict

    Hello

    I have a problem with references conflict.
    I am using Xceed dll in my indicators to get a nice property grid.
    Now one of my customer is using another indicator that uses the same Xceed reference but not the same version.

    Obviously that creates a conflict and causes compiling problems so both indicators cannot work at the same time.

    What can I do on my side that could fix this problem ?

    Thank you



    #2
    Hello blar58,

    Thank you for your post.

    It sounds like this DLL isn't one you created. The developer of the DLL would need to change the class names in the version of the DLL you're using and change the file name in order for this to work. If it is one you created, you could make those changes yourself since you'd have access to the source code.

    Alternately, you could modify your script to use the same version of the DLL that the other assembly is using - this would likely be the simplest route.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Thanks Kate

      No I am not the one who created the DLL file.

      Now I would be really interested in modifying my script to use the same version of the DLL.
      Could you guide me in how to do this ?

      Thanks again !

      Comment


        #4
        Hello blar58,

        Thank you for your reply.

        I don't have a step by step guide for you, but essentially what you would need to do is to remove the DLL assembly you're currently using, import the assembly they are using, modify your code, and then consult the developer of the DLL for any issues with using that version.

        Please let us know if we may be of further assistance to you.
        Kate W.NinjaTrader Customer Service

        Comment


          #5
          Kate
          Thank you for your reply.
          I just got an idea and would like to know what you think about it.

          If from the Editor I right click ( references window ) and change the Xceed directory to get the other version ( which I put in another directory ) would that work ?

          That would imply that my customer would have to copy his version to the same directory I have created.

          Or even better what if I ask my customer to put my version in another directory other than custom directory and change the reference directory from the Editor ?

          Last edited by blar58; 11-30-2020, 10:36 AM.

          Comment


            #6
            Hello blar58,

            Thank you for your reply.

            The reference that you make to the other assembly would need to have the same path as where it is placed by the other installation since you don't have control over where that programmer placed their reference. The conflicting assembly would need to be removed and could not be in a different directory as you'd still get errors when trying to compile that.

            Please let us know if we may be of further assistance to you.
            Kate W.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by warpinator, 05-16-2024, 10:44 AM
            4 responses
            34 views
            0 likes
            Last Post warpinator  
            Started by Grantx, 05-31-2020, 06:49 AM
            6 responses
            1,380 views
            0 likes
            Last Post TrueFlowTrading  
            Started by Shai Samuel, 05-02-2023, 01:32 AM
            8 responses
            126 views
            0 likes
            Last Post giulyko00  
            Started by suraj, 05-18-2024, 08:51 AM
            3 responses
            19 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by sylviannyc, Today, 09:07 AM
            0 responses
            3 views
            0 likes
            Last Post sylviannyc  
            Working...
            X