Re: memory allocation problems
- From: "David Webber" <dave@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 1 Jun 2005 06:17:39 +0100
"Simon Trew" <ten.enagro@werts> wrote in message
news:OgcRzDjZFHA.2796@xxxxxxxxxxxxxxxxxxxxxxx
>> (I take it you *are* remembering the [] in the delete statement?)
>
> On VC6 and 7.0 implementations (haven't tried it on 7.1 or 8b2),
> it magically works anyway. It's undefined behavior, of course, but
> it's unlikely to cause this particular bug.
Interesting. I didn't know that.
I'll now try to forget I do and go on writing correct code :-)
Dave
--
David Webber
Author MOZART the music processor for Windows -
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm
.
- References:
- Re: memory allocation problems
- From: David Webber
- Re: memory allocation problems
- From: Simon Trew
- Re: memory allocation problems
- Prev by Date: Re: Static/ non-static member access
- Next by Date: Re: memory allocation problems
- Previous by thread: Re: memory allocation problems
- Next by thread: Re: memory allocation problems
- Index(es):
Relevant Pages
|