When I have previously been stuck in a loop, or one of my routines freezes I have been able to get back to the Command Line by hitting escape (the harder the better). Now, in 2012 I get a message asking whether I'd like to Quit the Program, or allow it to continue to run. If I quit the program AutoCAD shuts down and I lose evertything, and if I allow it to continue It'll never end.. Anyone know of any other key combination equivalent to the old faithfull 'Escape'.?
@petervose wrote:When I have previously been stuck in a loop, or one of my routines freezes I have been able to get back to the Command Line by hitting escape (the harder the better). Now, in 2012 I get a message asking whether I'd like to Quit the Program, or allow it to continue to run. If I quit the program AutoCAD shuts down and I lose evertything, and if I allow it to continue It'll never end.. Anyone know of any other key combination equivalent to the old faithfull 'Escape'.?
I was stuck in a WHILE loop many times during development.
I was also stuck a few times in a dialog that was supposed to go
away, and then come back after selecting objects on the screen.
In both instances I had to terminate AutoCAD because [Esc]
was not the answer. I never did try the [Break] key...
Looks like you need to clean up the program(s):
- Ensure user input is of the correct type (STRING, REAL, LIST, etc.),
- Ensure the user input is what the program asks for,
- Provide a default value if the user input is not correct,
- Provide default value(s) before gathering user input, or
- Terminate the program before entering a loop.
If one pauses inside the loop, test the input before further
execution or test the user input as part of the loop condition.
For this second half of the above sentence:
Get User Input
WHILE (test User Input)
Execute
Get User Input
);WHILE
The answer is always the easy part.
It's foolproofing the question that is the hard part.
???
Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.