J
Josh Booth
Hi,
I have a large amount of data to display in a listview so I decided I would
fire up a new thread and share a queue between the thread and the main app
using lock( this.m_listQueue.SyncRoot ) where needed. I gave the thread a
deligate as well so it could call for the UI to be updated every 100 records
or so.
Now it all works fine, the list is populated correctly and in sets of 100
records at a time. However, if the user taps the list before it has
completly loaded the program hangs, no exceptions appear to be thrown or
anything. All the listview.Add calls occure in the main application thread
and all dequeue and enqueue operations are done in locks. Does anybody have
any idea what is causing this problem??
Regards
Josh
I have a large amount of data to display in a listview so I decided I would
fire up a new thread and share a queue between the thread and the main app
using lock( this.m_listQueue.SyncRoot ) where needed. I gave the thread a
deligate as well so it could call for the UI to be updated every 100 records
or so.
Now it all works fine, the list is populated correctly and in sets of 100
records at a time. However, if the user taps the list before it has
completly loaded the program hangs, no exceptions appear to be thrown or
anything. All the listview.Add calls occure in the main application thread
and all dequeue and enqueue operations are done in locks. Does anybody have
any idea what is causing this problem??
Regards
Josh