G
Guest
Hi
I have a main form which can have controls updated from separate threads, using Control.Invoke(). In actual fact, these are update methods called by events from a remoted singleton. Now, I have a modal dialog called from the main form, which changes settings in the remoted singleton. The singleton then throws update events caused by the settings changes, which the main form handles. (The modal dialog has not been dismissed) The problem is, the Control.Invoke method in the main form appears to be freezing, probably due the fact that the modal dialog is still visible, which is waiting for the method calls to return. There appears to be a deadlock situation!
Anyone experienced this before and got any ideas on getting round it?
Thanks
Jon
I have a main form which can have controls updated from separate threads, using Control.Invoke(). In actual fact, these are update methods called by events from a remoted singleton. Now, I have a modal dialog called from the main form, which changes settings in the remoted singleton. The singleton then throws update events caused by the settings changes, which the main form handles. (The modal dialog has not been dismissed) The problem is, the Control.Invoke method in the main form appears to be freezing, probably due the fact that the modal dialog is still visible, which is waiting for the method calls to return. There appears to be a deadlock situation!
Anyone experienced this before and got any ideas on getting round it?
Thanks
Jon