|
|
|
|
vector std::vector<animation>
|
|
|
|
First, you should update your build environment. GCC 3.4.5 is ancient and the debugger seems to be buggy. Get rid of MinGW (Code::Blocks too if it is outdated) and install the package including MinGW here: http://www.codeblocks.org/downloads/26 |
Second, you should define the global macro _GLIBCXX_DEBUG in the debug build. This will alert you of any out-of-bounds accesses in standard containers and dereferencing of invalid iterators. |
There's also an error in line 44: It should be delete[] Buffer;. Pointers returned by new[] must always be deleted with delete[]. |
Another project you have before you is to banish all uses of C strings from your program. Messing with these is a common source of errors, especially if you're not experienced yet. |
And what is the meaning of this cast in line 24? myxmlparser *parser = (myxmlparser*)parserex; Why isn't the parameter a myxmlparser pointer in the first place? If you absolutely need to cast from void* (which is rare), you should use reinterpret_cast. ico |
anim[i]
defined? is it a vector?
|
|
|
|