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 helpwanted, Today, 03:06 AM
    1 response
    5 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    7 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X