error in particles simulation

Hi All,

I am trying to enable texture in particles simulation but it is not working and it gave me this error:

c:/ProgramData/NVIDIA Corporation/NVIDIA GPU Computing SDK 3.2/C/src/particles/p
articleSystem.cu(190) : cudaSafeCall() Runtime API error : invalid argument.
Press any key to continue . . .

so anyone knows why?

Thanks,
Shadi

Code please.

Here are is the code that has an error:

#if USE_TEX
cutilSafeCall(cudaBindTexture(0, oldPosTex, oldPos, numParticlessizeof(float4)));
cutilSafeCall(cudaBindTexture(0, oldVelTex, oldVel, numParticles
sizeof(float4)));
#endif