Original Post
Does anyone have experience with trying to store pointers in STL vectors?
I have vectors that store both char* arrays and function pointers - when it comes to clear the vectors out and close the executable down, I get an assertion failure - which I guess stands to reason as the vectors would be left full of dangling pointers at that point (I was hoping the vectors own destructor would tidy this up, but evidently not).
I''ve tried cycling through the items in the vector, setting the pointers to 0 and ''delete''ing them before closing down, but the assertion failure is still there afterwards.
Any suggestions as to what I''m missing out on?