Easy language multithreading exit problem

1. Add an assembly variable or global variable:

Whether to close, logical type

2.

. Calculate the loop header (take the number of array members (aci2), h2)

If (take the number of array members (aci2) ≥ h2)

b = aci2 [h2]

py2 = apy2 [h2]

sx2 = asx2 [h2]

fj = fj + 1

At the beginning of this period, that is, the line below the head of the counting period, add:

If true (closed or not closed)

Return()

3. modify. Subroutine _ Auto Mode Window _ will be destroyed:

Add at the beginning:

Off or not off = true.

Waiting thread (combination word,)

After waiting for the thread to return, you can destroy the window normally.

4. It is strongly recommended not to forcibly end the thread! It is easy to make the whole process collapse.