when programs turn nasty

What was the biggest accident you made trying to make a program, then it just stuffed up your computer.

Mine was a calculator that looped over and over, eventually the screen went black and I had to restart (my computer not the project).
Last edited on
Thats the reason i have task manager open when im doing stuff that might go wrong quick

Havent had any bad accidents really
I've managed to crash the IDE or the compiler some times.
I've once run a program to use 100% RAM & CPU to see what happens, that time my system got so slow that I had some problems killing that program
I one managed to cause a BSOD with scanf(). This was before I knew how pointers work.

Really I have no idea what happened, I just ran my program and... yeah.
I made a program that would read any type of file and dispay the file as an image, each 3-byte set making an RGB value. It made my system hang like an AMD Overdrive overclock gone wrong. Mouse wouldn't move, pressing the power button did nothing. I eventually just hit the restart button, never bothered to finish the program since it wasn't all that important.
Infinite loop :(
Are you all running in real mode or something? The only time I've accidentally caused a crash was while working on kernel code. I can't imagine how you can crash the system from user space.
closed account (1yR4jE8b)
1
2
3
4
5
6
int main(){
     while(true)
          new double();

     return 0;
}


Just to see how fast it would take me down. It was practically instantaneous....
Just to see how fast it would take me down. It was practically instantaneous....


I just ran that, took my comp about 30 seconds to freeze up. I am running with 2GB of RAM and an AMD Turion dual core processor.
VC++ automatically runs programs in 32-bit mode, didn't affect me since I have 6GB installed.
See? I knew it. The system didn't crash, it just ran slowly while there were a lot of page outs going on and it killed the program when swap space finally ran out.
It was pretty cool to see my program take over a GB of ram in task manager, lol.
I did that once just to see what would happen. I made a multithreaded with 10 threads making each making a child thread every second, and each thread allocating memory for a class with one of each of the basic types in it. it took about 12 seconds for the old laptop to hang :P well it didnt so much hang as it slowed to the point where I couldnt move the mouse anymore.
Topic archived. No new replies allowed.