Article View: borland.public.cppbuilder.nativeapi
Article #2505Re: Memory Leak - TForm or TStringGrid or DynamicArray
From: Ed Mulroy
Date: Fri, 09 Feb 2007 00:56
Date: Fri, 09 Feb 2007 00:56
13 lines
1626 bytes
1626 bytes
> ...I've said this before, and I'll say it again - if I see a delete
> in user code, I consider it a warning sign that the code is
> probably unsafe...
std::auto_ptr<char> Foo(new char[26]);
As the old saying goes, "all full generalizations are wrong, including this
one" <g>
. Ed
> Alan Bellingham wrote in message
> news:ptems2p2k2rquqdiao805ik2fhg6jl9n9a@4ax.com...
Technical Details
Message-ID:
<45cbc696$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!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-mailReferences:
<45c7810f@newsgroups.borland.com> <45c7dc8d$1@newsgroups.borland.com> <45c89ec6@newsgroups.borland.com> <45ca4546$1@newsgroups.borland.com> <0sqks2t4c90epuc62bv635h36cqeat0ujd@4ax.com> <45cb3451$1@newsgroups.borland.com> <ptems2p2k2rquqdiao805ik2fhg6jl9n9a@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,191a7d21d69bde32 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ed Mulroy" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <45c7810f@newsgroups.borland.com> <45c7dc8d$1@newsgroups.borland.com> <45c89ec6@newsgroups.borland.com> <45ca4546$1@newsgroups.borland.com> <0sqks2t4c90epuc62bv635h36cqeat0ujd@4ax.com> <45cb3451$1@newsgroups.borland.com> <ptems2p2k2rquqdiao805ik2fhg6jl9n9a@4ax.com> Subject: Re: Memory Leak - TForm or TStringGrid or DynamicArray Date: Thu, 8 Feb 2007 19:56:01 -0500 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 66.57.117.102 Message-ID: <45cbc696$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1170982550 66.57.117.102 (8 Feb 2007 16:55:50 -0800) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!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