The ball becomes dead when the violation or technical foul occurs. The location of the violation is the original throw-in spot.