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 zstheorist, Today, 07:52 PM
    0 responses
    3 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    149 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Working...
    X