Sorry to bring this up again, but it's related to the code from the first post. For me it's working very well, but now I have to manage more than 71000 positions.
Up to 65536 it's ok but for bigger values (I've changed the number in the code) doesn't work.
Is there a workarround for that?