you have to show us the context of your example.
a watch window can only show you global variables, and variables that are
currently in scope.
in the following example i have added ends[0][2] to my watch window. i only
get a value there as long
as i am debugging the function 'testje'. as soon as the debugger steps out
of that function, i get an error in my watch
window because the current scope does not see the variable 'ends'.
other than that, quickwatch and the watch window work fine with the code
example you supplied.
#include "stdafx.h"
void testje(void)
{
double ends[2][3];
ends[0][2]=8.3;
}
int _tmain(int argc, _TCHAR* argv[])
{
testje();
return 0;
}
kind regards,
Bruno.
"Tau" <Ta*******@gmai l.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
look my simple code below(vc8):
double ends[2][3];
ends[0][2]=8.3;
when i debug it, the variable ends[0][2] cannot be displayed in the
watch window.
it just said "error: index '0' out of bound for pointer/array 'ends'".
why would this happen? Is it a bug of VC8?
Thanks in advance!