🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7069

Re: memory control over vector

#7069
From: Remy Lebeau (TeamB)
Date: Sat, 19 Mar 2005 22:55
19 lines
1246 bytes
"Boguslaw Fries" <boguslaw.fries@polivision.it> wrote in message
news:423c38d8@newsgroups.borland.com...

> mystac.pop( ); <-have I delete pMyobj ?

Yes, you have to delete the object you pop from the stack:

    Myobj *pObj = mystac.pop( );
    //...
    delete pObj;

> If yes, how to nicely delete objects in the program when I
> have many returns ?

Please elaborate.


Gambit
Technical Details
Message-ID: <423cadb1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <423c38d8@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,62ed433aa0de877f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <423c38d8@newsgroups.borland.com>
Subject: Re: memory control over vector
Date: Sat, 19 Mar 2005 14:55:33 -0800
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <423cadb1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111272881 68.69.17.41 (19 Mar 2005 14:54:41 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail