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 charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            59 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            143 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            161 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            97 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            276 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X