T
Torben Frandsen
Hi
I have a collection which is updated from two different threads, using the
singleton pattern. The GetInstance method is of course thread safe. Works
nicely.
Now I want the UI to reflect what's going on in the collection, and what's
more obvious than implementing IBindingList and binding a DataGrid to it?
This may not be a good idea after all, since the DataGrid updates only every
now and then, and the form hangs on closing. I suppose this is a thread
safety issue.
Is there something I can do with my collection to make it more databinding
friendly, or should I invoke a method on the UI thread every time a field is
changed? Or is there a third way?
Torben
I have a collection which is updated from two different threads, using the
singleton pattern. The GetInstance method is of course thread safe. Works
nicely.
Now I want the UI to reflect what's going on in the collection, and what's
more obvious than implementing IBindingList and binding a DataGrid to it?
This may not be a good idea after all, since the DataGrid updates only every
now and then, and the form hangs on closing. I suppose this is a thread
safety issue.
Is there something I can do with my collection to make it more databinding
friendly, or should I invoke a method on the UI thread every time a field is
changed? Or is there a third way?
Torben