R
rlg
We have C# 2005 multi-threaded app.
A background thread is processing data and periodically updating the
contents of a ListView. Sometimes, the user clicking on a ListView
item will not select the item (in the MouseClick event,
ListView.SelectedItems.Count = 0).
Initially we assumed it was because the background thread was in the
process of updating the ListView. However, breaking on the first line
of the MouseClick event reveals that the background thread is sleeping
(although perhaps with the timing of the debugger, the background
thread is still the culprit).
What could cause clicking on a ListView item to not select the item?
Thanks in advance...
A background thread is processing data and periodically updating the
contents of a ListView. Sometimes, the user clicking on a ListView
item will not select the item (in the MouseClick event,
ListView.SelectedItems.Count = 0).
Initially we assumed it was because the background thread was in the
process of updating the ListView. However, breaking on the first line
of the MouseClick event reveals that the background thread is sleeping
(although perhaps with the timing of the debugger, the background
thread is still the culprit).
What could cause clicking on a ListView item to not select the item?
Thanks in advance...