GeForce 335M + Visual Studio 2012

You’re not using the cuPrintf functionality correctly. Review the cuda simple printf sample code for correct usage.