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 21:12:13
|
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=20 wasn't the question. The memory will be released! /Per W On Thu, 24 Oct 2002, Ioannis Vranos wrote: > > -----Original Message----- > > From: dev...@li...=20 > > [mailto:dev...@li...] On Behalf=20 > > Of Carlos Garc=A6=CDa del Monte > > Sent: Thursday, October 24, 2002 5:26 PM > > To: dev-cpp-users-list > > Subject: Re: [Dev-C++] dynamic allocation and structs > >=20 > >=20 > >=20 > >=20 > > Per Westermark escribi=A8=AE: > >=20 > > > Well, maybe not directly forever. > > > > > > It will also be automatically released - for most operating=20 > > systems, that > > > is - when the application ends. > >=20 > > Or when exiting the scope. >=20 >=20 > No. >=20 >=20 > Ioannis >=20 > * Ioannis Vranos > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL: http://run.to/noicys >=20 >=20 >=20 >=20 > ------------------------------------------------------- > 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 >=20 |