On Tuesday 28 June 2005 14:57, Michael Thaler wrote: > QUANTUM * tmp = new QUANTUM[ width * m_pixelSize * sizeof( QUANTUM ) ]; Also, note that contrary to malloc, with C++'s new you don't need to multiply with a sizeof(type). (Not that it matters here, afaik sizeof(QUANTUM) is 1)