I created my own class but when I try to instantiate it I run into a wall.
Here’s my code:
m_interpolation = new Interpolation(m_mesureList, width, height, parent);
delete m_interpolation;
Which generates the error:
Heap block at 0B3E9E40 modified at 0B3E9E68 past requested size of 20
I don’t see what I’m doing wrong…
For information here is the full definition of my class Interpolation.h and Interpolation.cpp if that’s of any help.
Added a destructor but still didn’t fix the problem.
Interpolation::~Interpolation()
{
delete m_progress;
m_progress = 0;
}
In the ctor:
Populating
m_w: up to(m_N-1)Later: accessing
m_w[m_N], beyond the end of the vector