Click to See Complete Forum and Search --> : How to type cast a dynamic variable


yhtay
April 27th, 1999, 03:03 AM
Hello,

I have some problem in viewing the content of a dynamically allocated variable, in the debugging environment. eg.


int main()
{
int fixArray[10];
int *dynamicArray = new int[10];
// processing here....
// During DEBUGGING
// I can look at each of the content (0..9) of the staticArray
// but only able to access the first element of the dynamicArray unless explicitly specify
delete[] dynamicArray;
}






My question is, is there any way that I can type cast dynamicArray in the DEBUGGER, so that it is treated as a static variable during DEBUGGING VIEW?

Thanx!