troubleshooting Question

Better alternative to Application.ProcessMessages?

Avatar of GVP
GVP asked on
3 Comments1 Solution768 ViewsLast Modified:
My first question, so I hope I am doing it correctly!  I'm not sure how much or how little detail to give...

I need some guidance - I have a list of tasks that must be performed in order. Each task instruction is sent to a separate worker thread for processing. The sequence must wait for the preceding task to complete before moving on to the next one. I currently have a flag set by the worker thread when the task is done, and the list waits for this flag in an "application.processmessages" loop, before moving on to the next task.  It works, but I can't help but feel there is a better way.  Can someone suggest a better approach?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros