View Single Post

  #1 (permalink)  
Old 10-18-2007
Winwaed's Avatar
Winwaed Winwaed is offline
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 776
Blog Entries: 4
Multi-threading in an add-in?

I know VB6 prohibits it, but has anyone had any luck getting a .NET add-in to multi-thread?

My concern is to keep a GUI responsive. With VB6 this can be done using "sleep", which puts the current thread into the window/form's message loop for the set period. The closest sleep call in the .NET world literally halts a thread, which is no good.

Another way might be to force a form to empty the message queue regularly?

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Reply With Quote