Since this error as cropped up I used the test code that I was given on several different machines with different configurations. Most worked, some did not.
What was the spec of these machines?
p.s. Use 'Edit' which should be just after (Posted xxxx ago) to edit a post. Use this for forum codes such as codebox.