Quickly moving through a treeview causing crashes.
Posted on 2005-04-22
Been a while since I asked a question, but I wanted to get some thoughts on the best way to handle this scenario.
I have a standard treeview which gets populated at runtime, and then depending on what node you select, it goes to the database to get quite a bit of information each time to populate some frames.
The issue I am having, which I doubt is uncommon, is that if you move up and down the treeview fast using the mouse, the application crashes because it hasnt finished getting the previous information requested at the same time I am asking it to get the next nodes information etc.
What is the best way to handle this? Best way to almost halt the application while it retrieves the data it was asked for, then allow the user to move node again etc etc
Cheers fellow experts