Click here to Skip to main content
15,905,682 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Sorting the No in C# Pin
Gerry Schmitz10-Jul-18 9:51
mveGerry Schmitz10-Jul-18 9:51 
Questioni have problem to create diffie hellman Pin
Member 138380639-Jul-18 16:44
Member 138380639-Jul-18 16:44 
AnswerRe: i have problem to create diffie hellman Pin
OriginalGriff9-Jul-18 19:16
mveOriginalGriff9-Jul-18 19:16 
AnswerRe: i have problem to create diffie hellman Pin
Eddy Vluggen10-Jul-18 1:26
professionalEddy Vluggen10-Jul-18 1:26 
QuestionAsking Credential on every time in C# windows application that contains Crystal Report Pin
Member 139029998-Jul-18 16:21
Member 139029998-Jul-18 16:21 
AnswerRe: Asking Credential on every time in C# windows application that contains Crystal Report Pin
User 41802549-Jul-18 0:05
User 41802549-Jul-18 0:05 
AnswerRe: Asking Credential on every time in C# windows application that contains Crystal Report Pin
Eddy Vluggen10-Jul-18 1:25
professionalEddy Vluggen10-Jul-18 1:25 
QuestionHow to change Tab Page size Pin
User 136751148-Jul-18 5:14
User 136751148-Jul-18 5:14 
AnswerRe: How to change Tab Page size Pin
OriginalGriff8-Jul-18 6:08
mveOriginalGriff8-Jul-18 6:08 
AnswerRe: How to change Tab Page size Pin
Gerry Schmitz8-Jul-18 23:06
mveGerry Schmitz8-Jul-18 23:06 
QuestionUSB OVER NETWORK Pin
Zeyad Jalil8-Jul-18 3:03
professionalZeyad Jalil8-Jul-18 3:03 
AnswerRe: USB OVER NETWORK Pin
joost.versteegen8-Jul-18 20:58
joost.versteegen8-Jul-18 20:58 
AnswerRe: USB OVER NETWORK Pin
CP_Member88831-Jul-18 2:42
CP_Member88831-Jul-18 2:42 
QuestionWhat is the format of a SQLConnection connection string? Pin
Xarzu6-Jul-18 10:19
Xarzu6-Jul-18 10:19 
AnswerRe: What is the format of a SQLConnection connection string? Pin
Richard Deeming6-Jul-18 11:38
mveRichard Deeming6-Jul-18 11:38 
QuestionRtf Table Creating and Printing Pin
Member 117104825-Jul-18 20:49
Member 117104825-Jul-18 20:49 
AnswerRe: Rtf Table Creating and Printing Pin
Richard MacCutchan5-Jul-18 22:00
mveRichard MacCutchan5-Jul-18 22:00 
AnswerRe: Rtf Table Creating and Printing Pin
Eric Goedhart5-Jul-18 23:31
professionalEric Goedhart5-Jul-18 23:31 
QuestionMultiThreading help Pin
solutionsville5-Jul-18 6:05
solutionsville5-Jul-18 6:05 
AnswerRe: MultiThreading help Pin
Dave Kreskowiak5-Jul-18 6:29
mveDave Kreskowiak5-Jul-18 6:29 
GeneralRe: MultiThreading help Pin
solutionsville6-Jul-18 4:28
solutionsville6-Jul-18 4:28 
GeneralRe: MultiThreading help Pin
Dave Kreskowiak6-Jul-18 4:51
mveDave Kreskowiak6-Jul-18 4:51 
Well, this is definitely not a thread pool or "number of threads" issue. This is more of a data management and control problem.

That means, it seems like one thread is removing items from an array and another thread is asking for an item at an index that doesn't exist anymore.

The calls to Thread.Sleep lead me to believe that the code is poorly written in the first place. The Sleeps were put in there as a naive way of getting around a problem that the original coder didn't understand. Thread.Sleep should never be used in the code you've posted.

You said the problem shows up at updates.Add(qb.Query). I have no idea what that QueryBuilder class is and that seems like what would be throwing the exception.

The reference to updates.Add is just a List<string> and that will not throw the exception. The array bounds are managed internally by the List class and never fail like your exception describes.


modified 6-Jul-18 11:06am.

AnswerRe: MultiThreading help Pin
solutionsville10-Jul-18 2:59
solutionsville10-Jul-18 2:59 
AnswerRe: MultiThreading help Pin
OriginalGriff5-Jul-18 19:45
mveOriginalGriff5-Jul-18 19:45 
QuestionHow To solve Unity.Instance.Resolve(new ResolverOverride[] Pin
Member 110561804-Jul-18 4:56
Member 110561804-Jul-18 4:56 

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.