Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What does this error mean?

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

    What does this error mean?

    I am getting this error when calling an indicator from within another indicator. I am guessing the indicator is busy and is processing and has not finished before I call it again. If so, is there a sleep function I can use or a way to check to see if the call to the other indicator has finished before calling it again.

    Error on calling 'SetState' method: The lock is being disposed while still being used. It either is being held by a thread and/or has active waiters waiting to acquire the lock.
    Last edited by cutzpr; 02-22-2016, 09:32 AM.

    #2
    Hello,

    Thank you for the question.

    Are these standard indicators being used?

    There is no specific sleep function with NinjaTrader as this would not be wanted, what you are referring to would be making the thread sleep which is not advisable.

    Could you provide the syntax being used that causes the error to be displayed or a sample that demonstrates this? Potentially it is just the logic or way the item is being called and I could recommend a better way.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by schmidtbc16, Today, 03:36 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by RT001, Today, 03:25 PM
    2 responses
    15 views
    0 likes
    Last Post RT001
    by RT001
     
    Started by mbrandau, Today, 01:58 PM
    5 responses
    37 views
    0 likes
    Last Post mbrandau  
    Started by remcovdmeulen, Today, 02:15 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by gbrad, Today, 09:57 AM
    7 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X