while(true) is a valid piece of code. Basically, its a forever-loop. It loops untill break is encountered :) while(PlayAgain == true) would in many ways be invalid in my code.
You would be suprised when you figure that if(true) is valid as well.
Thanks for pointing that out to me. And yes, I am surprised. I learn a lot from all the programmers on this site. Hopefully, I never get to old, to learn something new.
The program does not exit while(true) loop even when Esc is pressed? Do you even pass the mywindow.Display(); statement? Maybe you never reach beyond this point. I don't know it's just a thought.