Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Visual Studio terminates NinjaTrader process upon attach

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

    Visual Studio terminates NinjaTrader process upon attach

    Photos of my steps are in the attachments.
    I am attempting to use Visual Studio to debug a ninjascript 8 indicator. In the ninjascript editor I change to debug mode and compile it. I then bring up Visual Studio through the ninjascript editor and attempt to attach to the ninjatrader process. The error is displayed in the attachments and the ninjatrader process crashes. Any idea what is going on?

    Click image for larger version

Name:	problem with NT and VS.jpg
Views:	141
Size:	133.2 KB
ID:	1339285



    #2
    Hello robertlaub,

    Thank you for your post.

    What version of NinjaTrader are you using?

    Was the "Attach to" field set to "Automatic: Managed code" or "Managed code" prior to attempting to attach to process?

    Comment


      #3
      Thank you for the quick reply.

      My NT version is 8.1.4.1 64-bit.

      The settings for the "Attach To" and "Code Type" fields are in the image from the first post.

      Comment


        #4
        Here are my choices:

        Click image for larger version

Name:	problem with NT and VS 2.jpg
Views:	127
Size:	30.2 KB
ID:	1339309

        Comment


          #5
          Do you have any protected assemblies installed in NT? If they were created with a prior version of Agile, this may be the cause of the crashing.

          Comment


            #6
            I have not knowly created any protected assemblies. What process can I use to determine if such assemblies are in NT?

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            153 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            89 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            133 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            127 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            107 views
            0 likes
            Last Post CarlTrading  
            Working...
            X