I get "runtime-error" 16 : expression too complex when I run from IDE, works compiled

On Error Resume Next: Debug.Assert 0.1: On Error GoTo 0

running the "test", it gives me:
clsTick: 0,9987 - 0,9984 - 0,9987 - 0,9994 - 0,9991
Sleep+DoEvents: 0.9994 - 1,0018 - 1,0003 - 0,9997 - 0,9999

running in windows 7 64bit