Article View: borland.public.cppbuilder.nativeapi
Article #7066memory control over vector
From: Boguslaw Fries
Date: Sat, 19 Mar 2005 14:35
Date: Sat, 19 Mar 2005 14:35
20 lines
1276 bytes
1276 bytes
Hello,
I extensively use STL library. I use many times the following construction:
stack< Myobj *> mystack;
Myobj * pMyobj;
if( .... )
{
pMyobj = new Myobj ;
mystack.push( pMyobj );
}
-....
and now:
mystac.pop( ); <-have I delete pMyobj ?
If yes, how to nicely delete objects in the program when I have many returns
?
Boguslaw Fries
Technical Details
Message-ID:
<423c38d8@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,62ed433aa0de877f,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Boguslaw Fries" <boguslaw.fries@polivision.it> Newsgroups: borland.public.cppbuilder.nativeapi Subject: memory control over vector Date: Sat, 19 Mar 2005 15:35:53 +0100 Lines: 22 Organization: PoliVision X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 83.25.64.86 Message-ID: <423c38d8@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111242968 83.25.64.86 (19 Mar 2005 06:36:08 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail