Click here to Skip to main content
15,901,373 members
Home / Discussions / C#
   

C#

 
Questionwhat this means Pin
3bood.ghzawi10-Feb-10 0:51
3bood.ghzawi10-Feb-10 0:51 
AnswerRe: what this means Pin
Calla10-Feb-10 1:23
Calla10-Feb-10 1:23 
Questionprocess in c# Pin
noamtzu009-Feb-10 23:19
noamtzu009-Feb-10 23:19 
AnswerRe: process in c# Pin
Rob Philpott9-Feb-10 23:30
Rob Philpott9-Feb-10 23:30 
AnswerRe: process in c# Pin
Calla9-Feb-10 23:52
Calla9-Feb-10 23:52 
AnswerRe: process in c# Pin
PIEBALDconsult10-Feb-10 3:26
mvePIEBALDconsult10-Feb-10 3:26 
QuestionSplit Data Table Records into several parts and assign to different Threads Pin
prabhakar CSPL9-Feb-10 22:47
prabhakar CSPL9-Feb-10 22:47 
QuestionThreading Pin
MumbleB9-Feb-10 22:20
MumbleB9-Feb-10 22:20 
Hi Guys. I have a slight problem. I have written an app that processes various types of files. I create a Thread for each type of file being processed depending on a checkbox being checked.

Now, from each file processed I output totals to a label on the form. However, this only seems to work for the first two files being processed and the remainder does not get their totals output to the labels. Is this a known issue and is there a way I can get around this? The code is kinda long so don't really want to add any here now. But the process flow of the program is such.

1) User selects a searches for file to process.
2) User checks the appropriate checkbox.
3) Thread is started calling the block of code to run.
4) Once file is processed finalize by calling GC.Collect().

if user wants to process another file he unchecks the current chechbox, checks a new checkbox and searches for new file and above process is followed calling the appropriate Thread to run.

Can somebody advise why when running more than two "Thread" processes in succession results in the third and fourth not outputting totals to the Label's?
Excellence is doing ordinary things extraordinarily well.

AnswerRe: Threading Pin
OriginalGriff9-Feb-10 22:31
mveOriginalGriff9-Feb-10 22:31 
GeneralRe: Threading Pin
MumbleB9-Feb-10 22:43
MumbleB9-Feb-10 22:43 
GeneralRe: Threading Pin
OriginalGriff9-Feb-10 23:25
mveOriginalGriff9-Feb-10 23:25 
GeneralRe: Threading Pin
MumbleB9-Feb-10 23:35
MumbleB9-Feb-10 23:35 
GeneralRe: Threading Pin
Luc Pattyn10-Feb-10 1:57
sitebuilderLuc Pattyn10-Feb-10 1:57 
QuestionLoading an assembly from a new AppDoamin Pin
ThetaClear9-Feb-10 20:28
ThetaClear9-Feb-10 20:28 
AnswerRe: Loading an assembly from a new AppDoamin Pin
Rob Philpott10-Feb-10 0:11
Rob Philpott10-Feb-10 0:11 
GeneralRe: Loading an assembly from a new AppDoamin Pin
ThetaClear10-Feb-10 9:53
ThetaClear10-Feb-10 9:53 
QuestionRSync Pin
satsumatable9-Feb-10 19:22
satsumatable9-Feb-10 19:22 
QuestionPreventing the dropdown from being opened when drop down button pressed in combobox? Pin
Ron.bharath9-Feb-10 18:53
Ron.bharath9-Feb-10 18:53 
AnswerRe: Preventing the dropdown from being opened when drop down button pressed in combobox? Pin
Hessam Jalali10-Feb-10 1:25
Hessam Jalali10-Feb-10 1:25 
QuestionSuspendLayout ResumeLayout Question Pin
Douglas Kirk9-Feb-10 18:52
Douglas Kirk9-Feb-10 18:52 
AnswerRe: SuspendLayout ResumeLayout Question Pin
Dave Kreskowiak10-Feb-10 2:07
mveDave Kreskowiak10-Feb-10 2:07 
AnswerRe: SuspendLayout ResumeLayout Question Pin
Luc Pattyn10-Feb-10 2:09
sitebuilderLuc Pattyn10-Feb-10 2:09 
QuestionRss Pin
kk.tvm9-Feb-10 18:21
kk.tvm9-Feb-10 18:21 
AnswerRe: Rss Pin
Arun Jacob9-Feb-10 19:13
Arun Jacob9-Feb-10 19:13 
AnswerRe: Rss Pin
Giorgi Dalakishvili9-Feb-10 19:32
mentorGiorgi Dalakishvili9-Feb-10 19:32 

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.