I am not 100% sure how it happened, and when it did happen I was mainly concerned to rescue my file in case something very bad happened. What did happen is that I deleted a subroutine and the IDE threw the attached error (x.gif). I am pretty sure this was the very last sub in the file.