GC takes over 2 seconds to complete on Cobra II (4.3.4) when VS debugger is not attached. When it is attached, it takes few milliseconds. Why? Two seconds is really a lot of time during which board is not responsive.
Dim led As Boolean Dim c As Integer While True led = Not led Mainboard.SetDebugLED(led) Thread.Sleep(100) c += 1 If c = 30 Then c = 0 Debug.GC(True) End If End While
Take a look how LED stops flashing for 2+ seconds while VS debugger is not attached.