problem with cudaMalloc

Hi everybody,

I have a problem with cudaMalloc, the pointer on the variable i want to create on the device is always at 0 when i run my program. I am using this code :

cutilSafeCall( cudaMalloc((void **)&d_Data, DATA_SIZE ));

I am using wxWidgets to watch images im working on

I have only one device, a 8800 GS.

I also tried to set the device with cudaSetDevice, but it doesnt work neither.

Can someone give me an explanation to this problem?

Thanks a lot