Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Any issues with Windows 10 ?

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

    Any issues with Windows 10 ?

    I have a situation where a tested assembly dll
    fails to run on Windows 10 Pro. I am only
    asking whether you have had any support
    requests on that platform with NT8.

    The Strategy dll is recognized and assembly
    loaded. But when Strategy menu of chart
    is requested, NinjaTrader crashes trying
    to pull it up.

    This is at the point where the system is
    attempting to show the list of available
    strategies. All redistributables for x64 are
    installed from 2012 through to 2019 for
    Visual Studio. All file permissions are clean.

    This runs fine on Windows Server 2012, but fails
    on 2 separate Win 10 Pro machines.

    I have racked my brain trying to understand
    what might be the issue on Win 10. Any
    ideas of some possible missing dependencies
    welcome. Will do CLR level debugging to
    try and find the cause. ?

    If NT8 has a fine grained debug log level
    that might also be useful.

    hyperscalper

    ​​​​​

    #2
    Hello Hyper,

    Thanks for your post.

    A large portion of our user base is on Windows 10 and we have not seen issues that would be specific to loading DLLs on that operating system.

    I may first suggest seeing if you can isolate the issue to a piece of source code and to see if the issue can be troubleshooted further from there. If there is a crash when the script gets listed in the Strategies dialog, I would keep the NinjaScript lifecycle in mind and start looking at OnStateChange code, specifically in State.SetDefaults and State.Configure.

    I may also suggest a combination of the following to get further hints when debugging.

    1. Check Windows Event Viewer Logs, and look for hints related to the crash.
    2. Use a StreamWriter throughout your OnStateChange code in the isolated test script so you can output feedback and see how far the code gets before a crash is seen.
    3. Check the getter/setter in any NinjaScript properties and look for recursion that may cause an infinite-loop.

    If there are .NET related crashing issues, you may want to attempt a repair of .NET Framework. Microsoft has a publicly available tool that can be found here - https://support.microsoft.com/en-us/...l-is-available

    Example using a StreamWriter - https://ninjatrader.com/de/support/h...o_write_to.htm

    We look forward to assisting.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thanks for your help and the many suggestions.
      I'll report back when I get to the root of the issue.
      hyperscalper

      Comment


        #4
        *MEA CULPA*

        I have to apologize with some extreme embarrassment.
        I was creating a logfile in a subfolder to %userprofile% but
        had not coded for the case where the directory was not yet created.
        This is what caused the crash. Nothing more I can say; my fault.

        So, very sorry; "Live 'n Learn", right?
        hyperscalper

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ketoneshot, Today, 02:49 AM
        0 responses
        1 view
        0 likes
        Last Post ketoneshot  
        Started by morrnel, Yesterday, 09:12 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by 7robert, Yesterday, 04:41 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by soon123, Yesterday, 08:07 PM
        0 responses
        8 views
        0 likes
        Last Post soon123
        by soon123
         
        Working...
        X