Sam Hu Wrote: It seems the error is not located in the code you have shown: http://codepad.org/ti7SaAtA So I think you have to show more code. Try to create a reduced case that shows the same error. Bye, bearophile