"Jeffrey Baker" <tb******@earthlink.net> wrote in message
news:52******************@newsread3.news.atl.earth link.net...
Hi,
I am recompiling a program from VC++ 5.0 to VC++.NET interface. C++
Compliance is tighter. I get the
error message before the program finished that
stack corrupt around "obj". - this being an object from
a statement like obj[i] = new Class;
Does anyone have a clue?
You'd need to ask on a microsoft newsgroup or check their documentation if
you want to know what their error message means precisely.
But it sounds like you've trashed memory somewhere. One line of code isn't
likely to help us determine where that might have occurred, however. Have
you tried debugging the program and watching how your arrays and pointers
are used? Some likely culprits for memory corruption are using an
uninitialized or deleted pointer, or writing beyond the bounds of an array.
-Howard