delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
content-class: | urn:content-classes:message |
Subject: | RE: [Possible BUG and a fix] Re[2]: Setup.Exe causes Application Error at 0x78001750 |
MIME-Version: | 1.0 |
Date: | Sat, 23 Mar 2002 15:33:03 +1100 |
Message-ID: | <FC169E059D1A0442A04C40F86D9BA76008AB7D@itdomain003.itdomain.net.au> |
X-MimeOLE: | Produced By Microsoft Exchange V6.0.5762.3 |
X-MS-Has-Attach: | |
X-MS-TNEF-Correlator: | |
From: | "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au> |
To: | "Pavel Tsekov" <ptsekov AT gmx DOT net>, <cygwin-apps AT cygwin DOT com> |
Cc: | "Seitz, Matt" <mseitz AT snapserver DOT com>, <cygwin AT cygwin DOT com> |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id g2N4XZc06631 |
> -----Original Message----- > From: Pavel Tsekov [mailto:ptsekov AT gmx DOT net] > Sent: Saturday, March 23, 2002 11:03 AM > strcpy (dp, dots); > delete[] dots; > key = String (dp); > > LOOK HERE - This is not right - we should delete at the base > of the block, not somewhere in the middle of it. > delete[] dp; > > We can do something like that > char *dp = .... > char *dp_save = dp; > > .... > > delete[] dp_save; Huh? delete[]dp; is the last reference to dp. delete[]dots; is the last reference to dots. Whats the problem? Rob -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |