RE: [Dev-C++] dynamic allocation and structs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2002-10-24 21:19:52
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Friday, October 25, 2002 12:12 AM > To: Ioannis Vranos > Cc: 'dev-cpp-users-list' > Subject: RE: [Dev-C++] dynamic allocation and structs > > > Answer is still yes. > > The question was: When will the memory be released. > It will for just about all operating systems be released on > termination > of the program. If it wasn't, you would leak global memory in your > computer, if you stop a program while debugging it, or if you manually > kill the program. > > The destructor for all allocated objects will not be called, but that > wasn't the question. The memory will be released! The "No" was for: "Or when exiting the scope." (that probably somebody else wrote). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |