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

calling thread cannot access this object because a differnt thread

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

    calling thread cannot access this object because a differnt thread

    I have problems with thread :

    Error on calling "OnStateChange' method: The calling thread cannot access this object because a different thread

    This problem happens randomly and is different from computer to computer.

    When I want to access the UI I am using the Dispatcher as mentionned in your documentation.

    I am also using a few Background workers to do stuff in the background like going to the Yahoo website downloading data or updating different variables using methods.

    Do i have to use the Dispatcher for these Background workers ?
    Could that resolve the error problem mentionned above ?

    Thanks
    Last edited by blar58; 11-28-2016, 09:37 AM.

    #2
    Hello blar58, and thank you for your question.

    So we can further diagnose your system, please start NinjaTrader in Safe Mode. Safe Mode will prevent NinjaTrader from:
    • Loading workspaces.
    • Connecting on start-up.
    • Loading custom assemblies.
    • Getting instrument updates from the server.

    To enable safe mode, please use the following steps:
    • Exit NinjaTrader.
    • Hold the CONTROL key and double click the NinjaTrader icon.
    • Keep the CONTROL key held down until you see the Control Center.
    • You can verify you are in safe mode by going to Help -> About.


    Please then just let us know if this occurs at all while you are in safe mode after a couple hours of use. This information will let us isolate what is occurring.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by PhillT, Today, 02:16 PM
    2 responses
    3 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Started by Kaledus, Today, 01:29 PM
    3 responses
    9 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frankthearm, Yesterday, 09:08 AM
    14 responses
    47 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by gentlebenthebear, Today, 01:30 AM
    2 responses
    14 views
    0 likes
    Last Post gentlebenthebear  
    Started by PaulMohn, Today, 12:36 PM
    2 responses
    17 views
    0 likes
    Last Post PaulMohn  
    Working...
    X