Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2012 c++ <Error reading characters of string.>

I'm trying to debug a c++ project in visual studio 2012 and when attempting to view a string value I get the error 'Error reading characters of string.'. The only relevant article I can find is here: http://connect.microsoft.com/VisualStudio/feedback/details/721456

but my project has none of the relevant preprocessor options set.

Heres a screenshot to show exactly what I mean

error http://img854.imageshack.us/img854/1682/09112012100524.png

Any help on this error would be much appreciated!

like image 997
Twisted89 Avatar asked Oct 20 '25 10:10

Twisted89


1 Answers

0xcdcdcdcd Is a special marker sequence used in Microsoft debug builds and shows the presence of uninitialized memory:

Well known magic numbers

This rather suggests that you haven't initialized the string inside your AptConstItem.

like image 127
Benj Avatar answered Oct 24 '25 04:10

Benj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!