CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Posts
    24

    Question dynamic arrays and memory

    I have three simple questions.
    Is the memory used by a dynamic array lost forever if you never deallocate it?
    what about after the program ends?
    what about after the computer is restarted?

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Fairfax, VA
    Posts
    10,861

    Re: dynamic arrays and memory

    These days OSes are smart enough to release all the memory used by a process when it ends, regardless of whether the process freed it or not. With the possible exception of shared memory....I'm not sure about that.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



HTML5 Development Center

Click Here to Expand Forum to Full Width