Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I see the following error when I try to debug in visual studio 2012

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

    I see the following error when I try to debug in visual studio 2012

    2014-05-28 16:24:47:584 ApplicationStart done, took 15.4 secs
    2014-05-28 16:26:13:217 in OnUnhandledThreadException
    2014-05-28 16:26:13:222 *************** unhandled exception trapped ***************
    2014-05-28 16:26:13:262 Could not find a part of the path 'C:\Users\Al\Documents\NinjaTrader 7\cache'.
    2014-05-28 16:26:13:284 at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalGetFileDirectoryNames( String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path)
    at NinjaTrader.Code.Editor.OnLoad(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    This error occurs periodically. the strategy files are compiled with debug on etc

    #2
    Hello newworldguy,

    Can you please shut down NinjaTrader and subsequently repair NinjaTrader from the 'Programs and Features' menu in the Windows Control Panel. Highlight NinjaTrader 7 and click Repair. Subsequently check if the error still occurs.

    Comment


      #3
      I did as you said now I get the attached error in visual studio when i try to attach
      Attached Files

      Comment


        #4
        Are you sure that your NS custom dll is recompiled with Debug mode enabled?

        Comment


          #5
          The Debug Mode is checked on the popup when I right click on the Ninja Editor window and then I compile. I assume that is the correct way to do it.

          Comment


            #6
            Thanks, yes that would be correct. Some further ideas to try with would be discussed here for example - http://stackoverflow.com/questions/8...r-without-debu

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            633 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            567 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X