MD Longhorn wroteBilly, that situation is completely different - the OP is a technical foul.
Certainly not he best caseplay for this situation.
It was just an example of continuous motion with a foul by the defense. The whistle doesn't cause the ball to become dead, even if the ball hasn't been released yet. Lots of important things to consider here: foul by the defense, act of shooting, and ball released after whistle.
And let's not forget that this play could be called differently at the end of the period, depending on when the horn sounds. But that's a story for another night. Good night moon.