I discovered that placing an "end" statement in the middle of a program rendered my 16f819 useless. Somehow it prevented the chip from ever programming again. I used up 7 chips while tracing this down.