All processes get suspended when building CUDA in Visual Studio

Hello everyone,
When I try to build C++ projects containing CUDA code in Visual Studio, all processes get suspended and computer freezes. Then I have to resume all the processes to be able to continue using my computer. I have tried building C++ only projects in Visual Studio and this problem hasn’t occurred, however, this problem is encountered when there is CUDA code in the project.
I have CUDA 6.5, latest graphics driver installed, and I tried building projects on Visual Studio 2012 and 2013, but this problem happened using any of them. I have Windows 8.1 and my GPU is Quadro K1100m.