Hmm, I can see nothing unusual in the sobel shader.

The program does not crash when you outcomment the 'effect = "pp_sobel.fx";' line?