I’d give a second check to my destructor - perhaps there’s something which is not deleted properly.
Just out of curiosity, does a two steps ‘clear()’ works?
It is quite difficult for me to use just a vector instead of a pointer since i have function that is repeated some million times on this vector which demands a pointer.
It is quite difficult for me to use just a vector instead of a pointer since i have function that is repeated some million times on this vector which demands a pointer.
I don't understand why. You can obtain a pointer to the elements of the vector as required.