I have a problem with developing a simple application in F#, which just reads the length of the requested HTML page.
Seems to be that such an error would be similar for
I had the same problem in that the Async.SwitchToContext did not switch to the Main Gui thread. It was in fact switching to some other thread.
In the end I found that the problem was how I got the uiContext in the first place. Using the following worked:
let uiContext = System.Threading.SynchronizationContext.Current
But it didnt work with:
let uiContext = System.Threading.SynchronizationContext()