well im guessing here that your strings have gone out of scope and you are left with an array of dangling pointers. I'd suggest converting to std::vector for the array and std::string for all the char* then the code will be simpler, more readable and less bug-prone.