Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using visual studio 2010 on Windows 7 64bit.

I compiled and ran a simple application basically a thing a child could make. Well the second it started to run, it froze my computer and rendered it unresponsive. It continues to do this every time and for every application.

Any ideas why this is happening?

share|improve this question
    
Have you tried putting in break points into your code? Can you rule out that your program isn't eating up all the memory? –  spong Jun 15 '10 at 13:41
    
I basically stuck a button on a form and ran it. I really don't think I am eating memory. It still crashes as a blank form, so it is not my code, since I didn't add any code. My computer has 4 cores, windows 7, a very beastin' graphics card, and every driver and software item is up to date. Thanks though sunpech. –  tcables Jun 17 '10 at 16:19
    
Assuming (and hoping) that you have a second computer around: 1. Can you still ping your frozen PC? If so, then most likely the graphics system is what froze, and you should (as above) update your video drivers. For that matter, if you can still ping it and it's not too dead, try using psexec.exe to reboot it remotely, so you don't have to power-cycle it. 2. Try the same app as a Windows Forms app, verify that it doesn't hang/crash your system. 3. Try any other WPF app you can think of, aside from VS 2010 itself. –  Mark Allen Jun 17 '10 at 20:50

2 Answers 2

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.

share|improve this answer
up vote 1 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.