🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Ternary operator memory leak

#17360
From: Remy Lebeau (TeamB)
Date: Sat, 05 Apr 2003 01:10
17 lines
1606 bytes
"Michael Kelly" <mkelly00@netzero.net> wrote in message
news:oq7s8vknteieb3rhtt4hl642bk1146rfj2@4ax.com...

> I don't have BCB so I can't look at the source
> to see what Trim does that may leak

It doesn't do anything to that effect.

> but what I don't get is why it would only happen with ?: operator?

I seem to recall awhile back discussions about a compiler bug in the ternary
operator itself in regards to AnsiString destructors not getting called
correctly.  I may be wrong, though.


Gambit
Technical Details
Message-ID: <3e8e2cf3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e8bf300$1@newsgroups.borland.com> <qkep8vg83uauivbohirnld8akmmttav577@4ax.com> <3e8d169d$1@newsgroups.borland.com> <oq7s8vknteieb3rhtt4hl642bk1146rfj2@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e689c7bb2171dc9a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-04 17:18:53 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e8bf300$1@newsgroups.borland.com> <qkep8vg83uauivbohirnld8akmmttav577@4ax.com> <3e8d169d$1@newsgroups.borland.com> <oq7s8vknteieb3rhtt4hl642bk1146rfj2@4ax.com>
Subject: Re: Ternary operator memory leak
Date: Fri, 4 Apr 2003 17:10:22 -0800
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e8e2cf3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1049505011 207.175.226.26 (4 Apr 2003 17:10:11 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail