Responsible for this behaviour is the so-called SynchronizationContext (modified since .NET 2.0 ?).
So maybe you better disable this
[CallbackBehavior(ConcurrencyMode = ConcurrencyMode.Single, UseSynchronizationContext = false)]
public partial class ClientForm : Form, IDeviceView, IMasterCallbackService
{
...
}
and synchronize back into the UI thread yourself manually.
No comments:
Post a Comment