Place ? @serror after each writevalue to see if it failing or not.

Is the computer a 64bit OS that it is failing on?