Can I Kill an Array?

Discussion in 'Questions (Windows Mobile)' started by enonod, Jul 11, 2009.

  1. enonod

    enonod Well-Known Member Licensed User

    Is it possible to kill an Array when no longer required? i.e. To attach array values to the new Sprite DataArray I must first create a global array and then associate that with the sprite. Unless that is the only association (perhaps by pointer) then the original Array is now not required and is taking up memory.

    Or, have I got it wrong, in that the global Array is the same one and the same memory space as the sprite DataArray?
  2. agraham

    agraham Expert Licensed User

    Don't worry about it. The .NET garbage collector manages memory for you, once something is no longer used it gets swept up automatically.
  3. enonod

    enonod Well-Known Member Licensed User

    Worry gone, thank you.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice