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 SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          35 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          13 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          19 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          22 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X