Corrupted display and system restart on running CUDA code

Hi All,
I have been trying for sometime now to code a simple transform which involves running a mask over the image.But every time i run the code i have had issues with corrupted displays, due to which i have had to restart my system many times.

Sometimes on running the code i am simply logged off. I am unable to understand to how this can be happening.

i am using a Quadro FX 4600 card.

If anyone has faced a similar problem or knows if its a known issue. Can u kindly reply or provide pointers so that i can resolve the issue.