BUG: Debugger Cannot Watch Function Returning struct or unionID: Q177937
|
Adding a function call in the Developer Studio debugger Watch window may result in the following message if the function returns a struct or union with a field width greater than 4 bytes:
Error: cannot display value
There is no workaround for this problem.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
The following procedure reproduces this problem:
/* File: TEST.CPP */
struct _XX
{
char m1;
char m2;
char m3;
char m4;
} XX;
struct _XX fun()
{
return XX;
}
int main()
{
fun();
return 0;
}
Additional query words:
Keywords : kbDebug kbide kbVC500bug kbVC600bug
Version : winnt:5.0,5.0sp1,5.0sp2,6.0
Platform : winnt
Issue type : kbbug
Last Reviewed: May 17, 1999