Ok, so I thought I’d give 2020r2.1 a go after avoiding API 2.0 for as long as possible, but surprisingly everything seemed to be going just fine until the simplest of things throws a spanner in the works.
Do Until srv.IsListening = False
DoEvents
Loop
It’s essentially a ConsoleApplication with a DoEvents loop while a server socket is listening, I’ve used this many times before without problem but when I run the app I am getting a NilObjectException when trying to call DoEvents every time.
Has DoEvents been removed? It appears in the autocomplete and latest documentation so can’t believe that. Even if it was, shouldn’t it raise a “method does not exist” instead? The App object is definitely non-nil so I’m not sure what’s causing this (App.DoEvents also has the same result).
Maybe a bug?