RE: [Dev-C++] dynamic allocation and structs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2002-10-24 22:03:13
|
Amen brother :-) /Per W On Fri, 25 Oct 2002, Ioannis Vranos wrote: > > -----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 > > > ------------------------------------------------------- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |