[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: qt-copy doesn't compile
From:       Charles Samuels <charles () kde ! org>
Date:       2002-03-07 21:36:58
[Download RAW message or body]

torsdag 07 mars 2002, 01:29 pm, skrev Stephan Kulow:
> On Donnerstag, 7. März 2002 22:09, Charles Samuels wrote:
> > torsdag 07 mars 2002, 12:25 pm, skrev Stephan Kulow:
> > > On Donnerstag, 7. März 2002 21:19, Bernhard Rosenkraenzer wrote:
> > > > Trying to build the current qt-copy (stock qt 3.0.2 and qt-rsync both
> > > > work) barfs out on:
> >
> > ....
> >
> > > > ok to revert?
> > >
> > > No! trans is an array
> >
> > I don't believe that there is any difference between delete [] and delete
> > for builtin types.
>
> So why does it crash?

Because something is wrong :)

You're asking why this crashes:

char *foo=new char[x];
delete [] foo;

Well, obviously something is wrong :)

-Charles

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic