CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: dynamic arrays and memory

  1. #1
    Join Date
    Jan 2009

    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
    Seattle, WA

    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

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)