How to check gpu array values?

hi, i have this code:

extern "C" void myFilter(int *srcHost){

	cufftHandle plan;

	cufftComplex *dstDevice;

	cufftComplex *dstHost;

	cufftReal *srcDevice;

	cudaMallocHost((void **) &dstHost,(N_SAMPLES/2+1)* sizeof(cufftComplex));

	cudaMallocHost((void **) &srcHost,N_SAMPLES* sizeof(int));

	

	//fill source with desired data

	myMakeSrc_32f(srcHost);

	

	CUDA_SAFE_CALL(cudaMalloc((void **) &srcDevice,N_SAMPLES* sizeof(cufftReal)));

	CUDA_SAFE_CALL(cudaMalloc((void **) &dstDevice,(N_SAMPLES/2+1)* sizeof(cufftComplex)));

	

	/* Create a 1D FFT plan. */

	CUFFT_SAFE_CALL(cufftPlan1d(&plan, N_SAMPLES, CUFFT_R2C, 1));

	

    CUDA_SAFE_CALL(cudaMemcpy(srcDevice, srcHost, N_SAMPLES, cudaMemcpyHostToDevice));

	

	/* Use the CUFFT plan to transform the signal in place. */

	CUFFT_SAFE_CALL(cufftExecR2C(plan, srcDevice, dstDevice));

	

    CUDA_SAFE_CALL(cudaMemcpy(dstHost, dstDevice, N_SAMPLES/2+1, cudaMemcpyDeviceToHost));

	

	/* Destroy the CUFFT plan. */

	cufftDestroy(plan);

}

(i do know i have to free all the pointers in the end, this is just testing)

i need to know what values the dstHost array contains, how can i do that? the “normal” C++ way doesn’t work because the values don’t show up on the tooltip…

this is a MFC application in VS05.

thanks