Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Write lock may not be acquired with read lock held

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

    Write lock may not be acquired with read lock held

    This is because used Dispatcher.Invoke() instead of Dispatcher.InvokeAsync()?

    #2
    Hi buildorbust, thanks for your question.

    Our help guide claims you can get a deadlock if you use Invoke rather than invokeasync:


    Do you get the problem when you use InvokeAsync rather than just Invoke? If so we would need more details on the code being run.

    I look forward to assisting.

    Comment


      #3
      Hello,
      I'm getting the attached errors on a fully managed strategy.
      I'm not using any custom events that override the Ninja events.
      What is the procedure to handle this issue?
      Attached Files

      Comment


        #4
        Hi saturntd, thanks for posting.

        The second message means the process (NInjTrader) has run out of PC memory. Do you get this consistently or only randomly when other applications are open? Please also make sure there is at least 2GB of paging file memory set up on your Windows installation:
        https://mcci.com/support/guides/how-...pagefile-size/ (publicly available link)

        Kind regards,
        -ChrisL

        Comment


          #5
          Chris,
          Thanks for the response.
          I'm going to increase system memory. It is usually almost all used up. The paging was already higher than recommended.

          Comment

          Latest Posts

          Collapse

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