Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Series<T> Termination Question

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

    Series<T> Termination Question

    If the Series<T> type T is a reference type, does the Series variable need to be cleared in the Terminate state to avoid a memory leak?

    For example, what if I have a Series<Dictionary<double,double>>?

    I have not had any issues, but wanted to be sure this get properly cleaned up on termination.

    #2
    Hello aslane,

    The outer series when disposed by NinjaTrader will dispose of any objects within the series.

    No, it would not be necessary to dispose of objects within an array or collection individually.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    9 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,983 views
    3 likes
    Last Post jhudas88  
    Working...
    X