Right, I did have a little while to read more about c_str(). Apparently it cannot be null, it can have a null pointer but std::string cannot actually ever be null, there should always be a value even if it is an empty string. Also from reading there can still be quite a few bad things happen to cause std::string to go haywire and I guess that is what is happening. It definitely gets assigned a value at some point because I see the value appear but later on something happens. I have yet to find what is happening. Maybe I can look at it again tomorrow.
|