View Full Version : A Word of Wisdom

10-16-2001, 09:59 PM
Word of Wisdom: Never create an infinite loop which writes data to a file.


Within 5 seconds it fills up 30 MB of HD space...
Within a couple hours or less your entire HD will be full.

Yeah....i had a fun experience with that today...huge 30 MB files just by letting my program run for 5 seconds...totally by accident too. I was just trying to get a guy to ANIMATE walking!!!! Stupid DirectX....#&#%^%^....on the other side...i have accidentally created a small type of trojan/virus....wow....good thing i changed the code so it doesnt do that anymore...it could have given me some problems...heh heh.

10-16-2001, 10:08 PM
Ouch. That happened to me before too.

10-16-2001, 10:51 PM
never put pixel plotting into an infinite loop either, it quickly shut down the computer I was working on, playing with directx. (forgot to check for screen bounds)
I'm pretty sure I ran through all the video memory in no time.
Luckily it wasn't my computer.
he he.

10-17-2001, 01:58 AM
There's loads more like this waiting for you to fall into. That is what makes a good programmer!

10-17-2001, 03:14 AM
Words of Wisdom: mixing curry powder in milk is not a good idea.

10-17-2001, 08:32 AM
*laughing* I pulled one of those the other day. It wrote a whole gigabyte in about 8 seconds. Woops.