Click here to Skip to main content
15,891,253 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to make only checked treenode could be clicked? Pin
Dave Kreskowiak15-Nov-10 3:43
mveDave Kreskowiak15-Nov-10 3:43 
GeneralRe: how to make only checked treenode could be clicked? Pin
sanyexian15-Nov-10 13:21
sanyexian15-Nov-10 13:21 
Questionprogram word document to a PDF Pin
directred12-Nov-10 8:54
directred12-Nov-10 8:54 
AnswerRe: program word document to a PDF Pin
Richard MacCutchan12-Nov-10 10:01
mveRichard MacCutchan12-Nov-10 10:01 
AnswerRe: program word document to a PDF Pin
Richard MacCutchan12-Nov-10 10:02
mveRichard MacCutchan12-Nov-10 10:02 
AnswerRe: program word document to a PDF Pin
Dr.Walt Fair, PE12-Nov-10 10:07
professionalDr.Walt Fair, PE12-Nov-10 10:07 
QuestionQuestion on threading Pin
svanwass12-Nov-10 8:41
svanwass12-Nov-10 8:41 
AnswerThread manager Pin
David Mujica12-Nov-10 9:33
David Mujica12-Nov-10 9:33 
So, if all of your work is being done in these worker threads, then your main application just becomes a thread manager. Right? (lets take that as true)

1) The thread manager keeps an array of status; one slot for each thread dispatched. (running/WorkDone)

2) Each thread should throw an event which represents "WorkDone"; the thread manager will
listen for this event and update the corresponding array slot.

3) When all threads have been dispatched and begin their work, the thread manager just loops around and sleeps periodically checking if all status array slots have a "WorkDone" status; when that occurs you can continue with you process.

Maybe extend you status array to have a start time so that you can determine if a thread is taking too long, you can take corrective action.

Just a thought. Smile | :)

Good luck.
GeneralRe: Thread manager Pin
svanwass12-Nov-10 9:57
svanwass12-Nov-10 9:57 
GeneralRe: Thread manager Pin
svanwass12-Nov-10 10:23
svanwass12-Nov-10 10:23 
GeneralRe: Thread manager Pin
Jason Christian17-Nov-10 6:06
Jason Christian17-Nov-10 6:06 
AnswerRe: Question on threading Pin
Luc Pattyn12-Nov-10 10:23
sitebuilderLuc Pattyn12-Nov-10 10:23 
GeneralRe: Question on threading Pin
svanwass16-Nov-10 6:30
svanwass16-Nov-10 6:30 
AnswerRe: Question on threading Pin
Luc Pattyn16-Nov-10 7:08
sitebuilderLuc Pattyn16-Nov-10 7:08 
GeneralRe: Question on threading Pin
svanwass16-Nov-10 9:24
svanwass16-Nov-10 9:24 
GeneralRe: Question on threading Pin
Luc Pattyn16-Nov-10 9:41
sitebuilderLuc Pattyn16-Nov-10 9:41 
GeneralRe: Question on threading Pin
svanwass16-Nov-10 9:50
svanwass16-Nov-10 9:50 
GeneralRe: Question on threading Pin
Luc Pattyn16-Nov-10 11:29
sitebuilderLuc Pattyn16-Nov-10 11:29 
AnswerRe: Question on threading Pin
Tieske817-Nov-10 1:43
professionalTieske817-Nov-10 1:43 
AnswerRe: Question on threading Pin
Spectre_00117-Nov-10 2:38
Spectre_00117-Nov-10 2:38 
GeneralRe: Question on threading Pin
svanwass17-Nov-10 4:52
svanwass17-Nov-10 4:52 
GeneralRe: Question on threading Pin
Spectre_00117-Nov-10 4:56
Spectre_00117-Nov-10 4:56 
AnswerRe: Question on threading [modified] Pin
SLDWorks17-Nov-10 18:59
SLDWorks17-Nov-10 18:59 
QuestionHow to populate a listbox from one listbox? Pin
waner michaud12-Nov-10 6:59
waner michaud12-Nov-10 6:59 
AnswerRe: How to populate a listbox from one listbox? Pin
Dr.Walt Fair, PE12-Nov-10 9:58
professionalDr.Walt Fair, PE12-Nov-10 9:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.