Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exception - RemoveDrawObjects

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

    Exception - RemoveDrawObjects

    Occasionally, I see the following

    Caught exception: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
    at System.ThrowHelper.ThrowInvalidOperationException( ExceptionResource resource)
    at System.Collections.Generic.List`1.Enumerator.MoveN extRare()
    at NinjaTrader.Gui.Chart.ChartControl.RemoveAllDrawin gToolsFor(IChartObject chartObject)
    at NinjaTrader.Gui.NinjaScript.IndicatorRenderBase.Re moveDrawObjects()

    This is not generally reproducible. I normally see it when starting NT up from scratch and workspaces are loading. Once loaded, I will not see again while running.

    The indicator that uses this, always calls RemoveDrawObjects() to remove all drawings before adding the current set of drawings. This is done on bar close.

    This exception would seem to point to an internal NT issue.

    #2
    Hello aslane,

    Thank you for your post.

    Can you send us your log and trace files so we may look into this further?
    You can do this by going to the Control Center-> Help-> Email Support. Please list 'ATTN: Patrick H' in the subject line and reference this thread in the body of the email.

    Comment


      #3
      Similar issues here, non reproducible, comes and goes, with nothing in trace or log files except the error message mentioned.

      Comment


        #4
        I had been told this should be fixed in next version (8.0.3)

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by gbourque, Today, 06:39 AM
        0 responses
        3 views
        0 likes
        Last Post gbourque  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by benmarkal, Yesterday, 12:52 PM
        3 responses
        23 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by helpwanted, Today, 03:06 AM
        1 response
        20 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        12 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Working...
        X