Opened 11 years ago

Last modified 11 years ago

#2073 closed Bug

ContinueLoop crashes script if nothing to jump — at Initial Version

Reported by: Melba23 Owned by:
Milestone: 3.3.9.0 Component: AutoIt
Version: 3.3.8.0 Severity: None
Keywords: ContinueLoop Cc:

Description

Using ContinueLoop without a following statement to jump over to reach Next crashes AutoIt with:

"ContinueLoop" statement with no matching "While", "Do" or "For" statement.:

The Help file states:

ContinueLoop will continue execution of the loop at the expression testing statement (that is the While, Until or Next statement).

Code:

; Works
For $i = 1 To 3
	If $i = 2 Then
		ContinueLoop
	EndIf
Next

; Works
For $i = 1 To 3
	If $i = 2 Then ContinueLoop
	Sleep(10)
Next

; Crashes
For $i = 1 To 3
	If $i = 2 Then ContinueLoop
Next

Au3Check passes all 3 versions. I realise the final loop is badly coded, but I feel it should not crash AutoIt.

According to the original thread http://www.autoitscript.com/forum/topic/135947-bug/
it does not crash in v3.3.6.1.

M23

Change History (0)

Note: See TracTickets for help on using tickets.