new/delete problems, please help
I ran across this problem with the new/delete operators:
I allocate an array with new then perform some operations on it.
Then when use delete my debugger screams: 'unmapped memory exception'.
In the same code I also allocate a second array, perform almost the same operations and it deletes allright. Both of these pointers are mebers of a class and the delete operations performs from a public method of the class. The delete-statements looks like this:
can anyone tell me my mistake here...?
It's really annoying as hell!!!
Never had these problems before...