I'm not so sure of its still an issue, but I've run into trouble in the past when doing arithmetic inside of new []. I'd suggest storing m_texturePitch * m_textureHeight in a size_t temporary or consider using a vector.