Hi
Are you sure the error-message belongs to the code shown?!?
...or have you changed the code after run and before posting?
Anyway, you can then try and change from 'PtrInt' to 'PtrUInt', that's the param it's whining about... {in reverse that is...}
Regards Benny