If you create an array of wchar_t wide characters, TotalView automatically changes the type to
$wstring[n]; that is, it is displayed as a null-terminated, quoted string with a maximum length of
n. For an array of wide characters, the null terminator is
L’0’. Similarly, TotalView changes
wchar_t* declarations to
$wstring* (a pointer to a null-terminated string).
Figure 202 shows the declaration of two wide characters in the Process Window. The Expression List Window shows how TotalView displays their data. The
L in the data indicates that TotalView is displaying a wide literal.
Since most wide character arrays represent strings, the $wstring type can be very convenient. But if this isn’t what you want, you can change the
$wstring type back to a
wchar_t (or
wchar[n] or
$wchar or
$wchar[n]), to display the variable as you declared it.
X represents a hexadecimal digit. If the character uses from 17 to 32 bits, TotalView uses the following representation: