Hi, I solved the problem. The handler did a switch(...) on the lower 16bit of the cmd but the cmd value was still the long one so adding a & 0xffff solved the problem. Thank you, Martin