Use of manVarType.varPointer

When I use the manVarType.varPointer field for integers, all works well; when I use it for strings I get garbage in the ‘buffer’ parameter of manAccessFunctionType function during write and a zero length string during read. Any ideas as to why? Thanks Phil