Jacob Fussek
2004-05-25 22:24:45 UTC
When I put the line
"delete items;"
in my removeAll() method, I get the following error when I run the
compiled file:
"Microsoft Visual C++ Debug Library
Debug Assertion Failed!
Program:...
File: dbgheap.c
line: 1044
Expression: _CrtIsValidHeapPointer(pUserData)
See Visual c++ docs for more information on how your program can cause
such an assertion failure."
Note that putting the same line in my constructor method for
listOfIntegers doesn't bring up that error.
I have absolutely no idea what the problem is... Any ideas?
Jacob
"delete items;"
in my removeAll() method, I get the following error when I run the
compiled file:
"Microsoft Visual C++ Debug Library
Debug Assertion Failed!
Program:...
File: dbgheap.c
line: 1044
Expression: _CrtIsValidHeapPointer(pUserData)
See Visual c++ docs for more information on how your program can cause
such an assertion failure."
Note that putting the same line in my constructor method for
listOfIntegers doesn't bring up that error.
I have absolutely no idea what the problem is... Any ideas?
Jacob