Do Until MyBooleanB=True
If (MyList.Size=0 And MyBooleanA=False) Then 'the above posted exception is raised here!
StartTimer 'This Sub fills MyList with items and starts a timer,
'after several runs of its _Tick-Routine the MyList gets its items removed and MyBooleanA is set to False
End If
If CheckSomething=True Then
MyBooleanB=True
End If
Loop