This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [Possible BUG and a fix] Re[2]: Setup.Exe causes Application Error at 0x78001750




> -----Original Message-----
> From: Pavel Tsekov [mailto:ptsekov@gmx.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]