Different behaviour of new and malloc

bearophile bearophileHUGS at lycos.com
Sat Apr 13 15:18:20 PDT 2013


Namespace:
> I have a problem and maybe one you can explain, why this 
> failure happen.

Consider using something like:

auto newPixel = orgPixel[0 .. this.width * this.height * 
this.depth].dup;

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list