On Wed, May 25, 2005 at 11:37:07AM -0700, Earl Miles wrote:
> From looking this over, I think your problem might be string manipulation.
> const char *text = row;
> I'm not sure row is guaranteed to return a null terminated string.
> Without a null terminator, strlen() is guaranteed to fail and fail
> badly. I believe what you really want is this (slightly longer than it
> has to be for clarity):
> std::string tempString = row;
> const char *test = tempString.c_str();
Yep, Earl is on the right track. See the declaration of operator in
const ColData operator  (size_type i) const;
This returns a temporary, which disappears after that line of code.
You need to make a copy for yourself.