ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

Waiting for program completion in Visual Basic 2008

<< < (2/2)

f0dder:
Just a note, but I think that you should make sure that you spin that code off into another thread and poll it for completion.

Otherwise you may end up with some nastiness.
-Renegade (February 20, 2008, 03:21 PM)
--- End quote ---
DON'T POLL!

If he's doing a GUI and doesn't want to lock that up, sure, put program launch in a work thread. But don't frigging poll, have the worker-thread post a "I'm done" message to the GUI thread. Polling is evil and lame, except for a very small set of problems.

Navigation

[0] Message Index

[*] Previous page

Go to full version