Click here to Skip to main content
15,922,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all I have what i think to be a good question that has me stumped yet again. As it is my program runs through a set of statements in a private sub which returns the results to a Treeview but for some reason after the thread has finished it just sits there without returning the values from my sub. If then I click the start button again the results are displayed and the scan starts again.


Any ideas as to why or how I might fix the threading? to this sort of problem or point me in the right direction as to what my problem may be?

I have noticed it calls invoke and declares a public delegate

please help I am stuck and have tried to learn all i can about invoke and begin invoke to try updating a UI thread from a worker thread


thank you in advance
Posted
Comments
Dave Kreskowiak 4-Oct-12 14:15pm    
Wihtout seeing the relevant code snippets, it's impossible to say what went wrong.
Rellimnek 6-Oct-12 7:12am    
Subs do not return values, functions do. Or am I misunderstanding your problem?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900