S
Stijn Oude Brunink
Hello
I'm using std:vector to hold some pointers
vector<CBase*> x;
In the debug version I've the following problem:
After I've added a couple of pointers using the push_back function and I
iterate over x the program crashes in the iteration loop. If I debug the
program I see that the Iterator has som strange value which I did not put
in. Finially I end up in the XString header where there seems to be some
kind of memory allocation problem. If I ask for the last pointer in x using
x.back() I get a good result. but x[x.size()-1] produces nonsense;
The problem stated does not occur in release mode.
Does anaybody know what is going on.
I use VC6.0.
thanks
Stijn
I'm using std:vector to hold some pointers
vector<CBase*> x;
In the debug version I've the following problem:
After I've added a couple of pointers using the push_back function and I
iterate over x the program crashes in the iteration loop. If I debug the
program I see that the Iterator has som strange value which I did not put
in. Finially I end up in the XString header where there seems to be some
kind of memory allocation problem. If I ask for the last pointer in x using
x.back() I get a good result. but x[x.size()-1] produces nonsense;
The problem stated does not occur in release mode.
Does anaybody know what is going on.
I use VC6.0.
thanks
Stijn