Compile Time Recursion Warning
Posted on 2007-10-05
I've got a visual c++ application that i ported to .NET. I have only fixed the compile time errors. However, I get one compile warning for a line within one of my functions:
"recursive on all control paths, function will cause runtime stack overflow"
void C2DMyArray::SetSize(int newX, int newY, int nGrowBy)
SetSize( newX*newY, nGrowBy);
m_nSizeX = newX;
m_nSizeY = newY;
where C2DMyArray is derived from CTypedPtrArray.
Any thoughts on how to avoid this recursion?
Thanks ahead of time.