CodedUI Test Builder throwing System.OverflowException: Arithmetic operation resulted to an overflow at System.IntPtr.op_Explicit(IntPtr value) while dragging crosshair on custom control on 64 bit target platform in winform application but It works fine when i changed target platform to x86.
I have tested this scenario on multiple machines with same configuration, It throws the same exception with 64 bit target platform. With Windows standard control it is not throwing any error the problem comes with custom controls only also I would like to mention that control is working fine inside my application it is not throwing any exception Only With CodedUI with x64 target platform it is throwing exception when i drag crosshair to select custom control.