Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dispose V.S. GC

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

    Dispose V.S. GC

    Hi
    I have NT8 indicator which plots on chart using SharpDX methods.
    At his moment I do call dispose method at all. I expect the GC ( garbage collection) to take care of it.
    Is this a mistake? What is the effect of letting the software to activate automatically the GC?
    Last edited by doron; 03-16-2016, 03:22 AM.

    #2
    Hello doron,

    There are no means to call the Garbage Collector of .NET. Dispose just gets rid of resources when you call it.

    Comment


      #3
      if i do not call dispose explicitly i expect C# to handle it implicitly (may be after a while), am i wrong ?

      Comment


        #4
        I call this in a DLL - not sure you can do this from within the script though.

        System.GC.Collect()

        Comment


          #5
          ninja team
          my question was not fully answered
          i did not say i activate the GC , i just mentioned that it is activated automatically by the system.

          Comment


            #6

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by kinfxhk, 07-13-2026, 10:18 AM
            0 responses
            26 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 07-13-2026, 09:50 AM
            0 responses
            16 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 07-13-2026, 07:21 AM
            0 responses
            22 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 07-11-2026, 02:11 AM
            0 responses
            21 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by SalmaTrader, 07-07-2026, 10:26 PM
            0 responses
            136 views
            0 likes
            Last Post SalmaTrader  
            Working...
            X