Hi, The new code you supplied in other post works fine, but the code in the link in this post does not, after first try, says I have 255 tries and goes infinite on me, this must be a bug for 64 bit windows? If I cahnge the ubyte to uint works fine, I guess this must be a 64 bit issue Thanks for tips :)