cudaMallocHost array Can't edit values in VS2005

I allocated a host array with cudaMallocHost, and I try to change the values in the VS2005’s Watch window or Memory window, and the values just don’t change. The values can be changed programmatically but not in the editor.

Is this a restriction of VS2005, or a restriction of the memory?

__host__ void* _AllocateHostBuffer( int memSize)


   unsigned char *hostData = NULL;

   cudaMallocHost( (void**)&hostData, memSize );

  unsigned char* pCurrByte = hostData;



      *pCurrByte++ = i;


  return hostData;