Dear All,

I wonder why the following code causes Stata to stop responding to the BREAK button in the interface:
Code:
tempfile tmp

           while 1 {
               capture confirm file `"`tmp'.png"'
               if _rc break
               tempfile tmp
           }
(Make sure you save your work before running this example, if you wish to retain it!).


The code has an obvious flaw, there should be an exit command instead of break.
But the question is not why Stata goes into the infinite loop, but why it stops responding to break!

(StataMP 16.0/Windows).

Thank you, Sergiy