-
October 14th, 2003, 02:15 AM
#1
std:string & debugging
Hi,
When I debug my code containing std:string, many times I see garbage in the std:string in the debuuger but is I call to c_str I see the correct value
I mean
If I have string smyString
I see smyString at the debugger as garbage
then I do (for example)
char szMyString[100]
strcpy(szMyString,sMyString.c_str())
I see szMyString just fine in the debugger
that mostly happens when I have chars like & { at the debbuger } but not only
Any explanation?
Do I have to worry about that?
Thanks
avi123
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|