WPF Application from Visual Studio 2010 crashes Windows 7

Solution 1:

To freeze your entire system seems a hardware problem, or a driver problem.

Try updating your DirectX drivers. WPF uses DirectX to renter the GUI. After that, open again your app and check if it freezes.

Also, you can try to check windows event logger to see if there`s anything unusual.

Solution 2:

Thank you all for your help, I tried all of your suggestions, but I have solved it.

COMODO Antivirus/Firewall blocks all applications from calling DLL's, you have to click "Allow" on the dialog that normally pops-up. But since its a DirectX DLL for WPF (since WPF uses DirectX) it froze windows along with my app.