Also, please post your entire class and the program you are running to test it. Post only a small main() program that duplicates the problem.

Did you write a copy constructor and assignment operator for your string class? This is probably where your problem is.

Also, if you don't have to do this, again, use std::string. It is already written, so there is no need to reinvent the wheel.

Regards,

Paul McKenzie