Topic says all.
I was very astonished as I looked in the BUG-Reports section that this seems not to be allowed.
Break and ProcedureReturn should cleanup the stack in every situation it breaks out a look or a Select/ EndSelect block or the compiler should even give a warning on this.
Allow ProcedureReturn & Break in Select/EndSelect Blocks
it works for me
x86 winXP sp3
x86 winXP sp3
Code: Select all
For i=0 To 10
Select zero
Case 0
Debug "break - exit of loop"
Break
EndSelect
Next
Debug "ok"
Procedure test()
Select zero
Case 0
Debug "ProcedureReturn - exit of procedure"
ProcedureReturn
EndSelect
EndProcedure
test()
Debug "ok"

- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
the question to be answered is, if it is a QUAD problem.
if yes, it should be at least stated in the Help that Select is not suitable for Quads.
to my knowledge, the stack processing was fixed thus FakeEndSelect was removed.
History sais it was with 3.62
it was fixed for LONG-Selects, and if it wasn't extended meanwhile,
it's obvious that there will be a mistake now when the Select handles a Quad and the compiler cleans the Stack for a LONG-Select.
if yes, it should be at least stated in the Help that Select is not suitable for Quads.
to my knowledge, the stack processing was fixed thus FakeEndSelect was removed.
History sais it was with 3.62
it was fixed for LONG-Selects, and if it wasn't extended meanwhile,
it's obvious that there will be a mistake now when the Select handles a Quad and the compiler cleans the Stack for a LONG-Select.
oh... and have a nice day.
Re: Allow ProcedureReturn & Break in Select/EndSelect Bl
This should be allowed, it must be a bug.Tranquil wrote:Topic says all.
I was very astonished as I looked in the BUG-Reports section that this seems not to be allowed.
Break and ProcedureReturn should cleanup the stack in every situation it breaks out a look or a Select/ EndSelect block or the compiler should even give a warning on this.