Click here to Skip to main content
15,921,841 members
Home / Discussions / C#
   

C#

 
GeneralRe: Arraylist Goes Null after Passing information back to Main Page from Window. Pin
OriginalGriff23-May-10 23:22
mveOriginalGriff23-May-10 23:22 
AnswerRe: Arraylist Goes Null after Passing information back to Main Page from Window. Pin
PDTUM24-May-10 9:01
PDTUM24-May-10 9:01 
QuestionParsing plain Win32 PE File (Exe/DLL) in C#.NET Pin
glitteringsound23-May-10 4:30
glitteringsound23-May-10 4:30 
AnswerRe: Parsing plain Win32 PE File (Exe/DLL) in C#.NET Pin
Luc Pattyn23-May-10 5:07
sitebuilderLuc Pattyn23-May-10 5:07 
AnswerRe: Parsing plain Win32 PE File (Exe/DLL) in C#.NET Pin
Dave Kreskowiak23-May-10 18:22
mveDave Kreskowiak23-May-10 18:22 
Questionlistview last sorting [modified] Pin
teknolog12323-May-10 4:02
teknolog12323-May-10 4:02 
AnswerRe: listview last sorting Pin
Dr.Walt Fair, PE23-May-10 4:52
professionalDr.Walt Fair, PE23-May-10 4:52 
AnswerRe: listview last sorting Pin
Abhinav S23-May-10 4:59
Abhinav S23-May-10 4:59 
Questiondatabase connection problems about C# ,unable to connect database Pin
Make Up Forever23-May-10 2:34
Make Up Forever23-May-10 2:34 
AnswerRe: database connection problems about C# ,unable to connect database Pin
Abhinav S23-May-10 2:35
Abhinav S23-May-10 2:35 
AnswerRe: database connection problems about C# ,unable to connect database Pin
Luc Pattyn23-May-10 2:38
sitebuilderLuc Pattyn23-May-10 2:38 
QuestionRead access on class local fields from multiple threads Pin
Chesnokov Yuriy22-May-10 23:36
professionalChesnokov Yuriy22-May-10 23:36 
AnswerRe: Read access on class local fields from multiple threads Pin
DaveyM6923-May-10 0:47
professionalDaveyM6923-May-10 0:47 
QuestionBackgroundWorker.IsBusy failure!? Pin
Chesnokov Yuriy22-May-10 23:32
professionalChesnokov Yuriy22-May-10 23:32 
AnswerRe: BackgroundWorker.IsBusy failure!? Pin
DaveyM6923-May-10 0:58
professionalDaveyM6923-May-10 0:58 
QuestionRe: BackgroundWorker.IsBusy failure!? Pin
Chesnokov Yuriy23-May-10 1:32
professionalChesnokov Yuriy23-May-10 1:32 
AnswerRe: BackgroundWorker.IsBusy failure!? Pin
DaveyM6923-May-10 2:10
professionalDaveyM6923-May-10 2:10 
AnswerRe: BackgroundWorker.IsBusy failure!? Pin
Chesnokov Yuriy23-May-10 4:04
professionalChesnokov Yuriy23-May-10 4:04 
GeneralRe: BackgroundWorker.IsBusy failure!? Pin
DaveyM6923-May-10 4:24
professionalDaveyM6923-May-10 4:24 
GeneralRe: BackgroundWorker.IsBusy failure!? Pin
Luc Pattyn23-May-10 5:09
sitebuilderLuc Pattyn23-May-10 5:09 
AnswerRe: BackgroundWorker.IsBusy failure!? Pin
DaveyM6923-May-10 3:36
professionalDaveyM6923-May-10 3:36 
AnswerRe: BackgroundWorker.IsBusy failure!? Pin
Luc Pattyn23-May-10 2:24
sitebuilderLuc Pattyn23-May-10 2:24 
GeneralRe: BackgroundWorker.IsBusy failure!? Pin
Chesnokov Yuriy23-May-10 3:55
professionalChesnokov Yuriy23-May-10 3:55 
There is windows service application that should access some network resource and get data from it (e.g. SQL server, network server with some files, etc...)

There might be N such threads running in parallel each connecting to its own resource. Thus there are N instances of the helper class (performing such remote data collection) in the List array in the instance field of the service.

4. They need to run in parallel not in sequence one after another.

5. Timer is System.Threading.Timer. I'm using logging with milliseconds marks and can confirm accuracy depending on cpu load.


That is the timer tick function:

for (int i = 0; i < this.drives.Count; i++)
{
    if (this.drvBackgroundWorkers[i].IsBusy == false)
    {
         BackgroundWorkerArgument argument = new BackgroundWorkerArgument()
         {
             threadId = i,
             drive = this.drives[i]
         };
         this.drvBackgroundWorkers[i].RunWorkerAsync(argument);
    }                                
}


drvBackgroundWorkers is not accessed in any thread code only in that tick function.

I wonder the reason for a failure??
Чесноков

GeneralRe: timer ticks overlap [modified] Pin
Luc Pattyn23-May-10 4:23
sitebuilderLuc Pattyn23-May-10 4:23 
QuestionPreventing DataGridView column from auto-resizing when double-clicking the column header divider Pin
eyalbi00722-May-10 22:23
eyalbi00722-May-10 22:23 

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.