What was the worst bug you've ever solved ?
edw519: A batch run of only a few thousand items was running all night long, rarely finishing and causing all kinds of problems when people logged in in the morning.  The users had been complaining about this for years.I was given the ticket and found a "SLEEP 10" (causing a 10 second pause for each item) in the 10 year old BASIC code, put in by the original programmer for debugging purposes, and never removed before it was promoted.I removed the "SLEEP 10" and run time went from 12 hours to 23 seconds.The users loved me, but my boss was not pleased.  He said, "You should have changed it to a SLEEP 5 so we had something else to give them the next time they complained."