Computer freeze

Firstly, I wanna start off by saying this is extremely strange behaviour coming from my PC, since when I play games and don't program basic stuff, my PC runs smooth and never freezes or crashes. Hell, I can play Far Cry 3 & Arma 3 with no crash or freezes AT ALL. But when it comes to basic console programming, and I've been debugging and testing code a couple of times. My PC suddenly freeze completely and I have to reboot the whole system? I mean what? How can this be happening? Especially if I am just dealing with beginner stuff. We are talking about 30 - 40 lines of code here. The thing that bothers me, is that the last time it froze it did this HORRIBLE BEEP sound until I managed to shut down the PC. I am currently learning about dynamic memory allocation, so I am playing around in the console with it. Can it be very harmful doing it wrong? Even at beginner stage? It's been going on for the last week where I've been programming more frequently than ever in the console (beginner stuff).

Can it just be because my pc needs a cleanup of errors and stuff?
Last edited on
Yes, what your doing can cause the behavior your talking about.

If it only locks up when your running one of your programs, then that is the cause. If it locks up while typing code, then it's something else.
It would help if you posted the code.
Topic archived. No new replies allowed.