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 burtoninlondon, Today, 12:38 AM
        0 responses
        2 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        11 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        10 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        12 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,982 views
        3 likes
        Last Post jhudas88  
        Working...
        X