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 DJ888, Today, 10:57 PM
    0 responses
    1 view
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    7 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Working...
    X