Fixed the problem. I was deallocating a register too soon, so it got overwritten in some cases while still in use. Running tests again. Gareth aka. Kit -- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus