J
Jared.Holsopple
Hi all,
I have a dynamically allocated array of doubles in VC++ .NET. When I
view the array in the watch window with "arrayName, 10", it displays
the correct value for arrayName[0], but arrayName[1] through
arrayName[9] are all zeros. Note that arrayName is actually double*,
and not double[].
When I print out the array to the screen using printf, the correct
(non-zero) values are displayed. I'd rather not dump a bunch of
printf's everywhere to debug this, however. I know I am not violating
any array bounds and the memory is getting allocated.
This is actually the same issue as:
http://groups.google.com/group/micr...c66?q=debugger+array&rnum=12#0919616a37f14c66
There were no replies and hoped that re-posting this would help.
Thanks!
--J
I have a dynamically allocated array of doubles in VC++ .NET. When I
view the array in the watch window with "arrayName, 10", it displays
the correct value for arrayName[0], but arrayName[1] through
arrayName[9] are all zeros. Note that arrayName is actually double*,
and not double[].
When I print out the array to the screen using printf, the correct
(non-zero) values are displayed. I'd rather not dump a bunch of
printf's everywhere to debug this, however. I know I am not violating
any array bounds and the memory is getting allocated.
This is actually the same issue as:
http://groups.google.com/group/micr...c66?q=debugger+array&rnum=12#0919616a37f14c66
There were no replies and hoped that re-posting this would help.
Thanks!
--J