This is the expected behavior if you're calling from a thread without a SynchronizationContext. (See the docs at

[link:research.microsoft.com]

)

Usually you would call this method e.g. from the GUI thread of a Windows Form (which has a SynchronizationContext). Perhaps you just want Async.Run instead (may depend on exactly what you are trying to do)?

By on 9/11/2008 3:49 PM ()

Hi,

I wanted to perform some I/O operations (read the data of several files, which can be time-consuming, and compare the hashes of these reads with some reference hashes), and then perform some action based on the results of these.

However, supposedly, this ought to be used in another context than a GUI application.

Usng Async.Run may be a littl long. I guess I'll see if I can use Event<...> instead.

In any case, thanks for your help!

By on 9/11/2008 10:58 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper