Vik009:
there is statement while( 1 ).
Not in the code you posted there isn't.
Vik009:
Is the while(1) stopping all the execution of the loop function.
Yes. What did you expect it to do?
Void Loop ()
{
...
while( 1 );
//stop
}
You even put a comment there: "stop". It does what you expect it to do.