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 StockTrader88, 03-06-2021, 08:58 AM
        45 responses
        3,991 views
        3 likes
        Last Post johntraderuser2  
        Started by TAJTrades, Today, 09:46 AM
        0 responses
        7 views
        0 likes
        Last Post TAJTrades  
        Started by rhyminkevin, Yesterday, 04:58 PM
        5 responses
        62 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by realblubb, Today, 09:28 AM
        0 responses
        8 views
        0 likes
        Last Post realblubb  
        Started by AaronKoRn, Yesterday, 09:49 PM
        1 response
        19 views
        0 likes
        Last Post Rikazkhan007  
        Working...
        X