Applies to: ABC template chain; posted in the sv.clarion.clarion10 group.
Problem
In the Procedure Setup embed the poster called another window. After it closed, a certain condition made the code run RETURN(Level:Benign) so that the procedure would not run. The app then stopped with the error "ACCEPT loop requires a window".
Solution
- Best fix, used by the poster: test the condition before calling the procedure, in the calling code, and call the window procedure only when the condition is met.
- Why it fails (a reply, given as a guess): the RETURN ends a method, probably Init, before the window is opened. The procedure is not ended, so the WindowManager continues to its Ask method, which holds the ACCEPT.
- If the check must stay inside the procedure, that reply suggested putting it in ThisWindow.Run (the one without parameters), before the Parent call, and returning from there.
Caveats
- The Run embed suggestion was not tried in the thread; the poster solved it with step 1 instead.
- A reply also suggested trying
RETURN Level:Notify; the thread does not say whether it was tried.
Today (2026)
Likely unchanged for ABC procedures; not re-tested.
Sources: Andre L. (Jan 2017, the question), Koen T., Bruce J., Steve P. (Jan 2017) in sv.clarion.clarion10.