Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using Connectionstring Pin
Keith Barrow31-Oct-09 3:03
professionalKeith Barrow31-Oct-09 3:03 
QuestionHow to access mdi parent's menustrip items from a child form [modified] Pin
idan_bismut30-Oct-09 21:58
idan_bismut30-Oct-09 21:58 
AnswerRe: How to access mdi parent's menustrip items from a child form Pin
idan_bismut30-Oct-09 22:37
idan_bismut30-Oct-09 22:37 
GeneralRe: How to access mdi parent's menustrip items from a child form Pin
OriginalGriff30-Oct-09 23:37
mveOriginalGriff30-Oct-09 23:37 
GeneralRe: How to access mdi parent's menustrip items from a child form Pin
idan_bismut31-Oct-09 3:47
idan_bismut31-Oct-09 3:47 
GeneralRe: How to access mdi parent's menustrip items from a child form Pin
Member 1312346617-May-17 20:20
Member 1312346617-May-17 20:20 
QuestionHow to Register mshtml dll in to GAC ? Urgent. Pin
Jacobb Michael30-Oct-09 20:29
Jacobb Michael30-Oct-09 20:29 
AnswerRe: How to Register mshtml dll in to GAC ? Urgent. Pin
Christian Graus30-Oct-09 20:32
protectorChristian Graus30-Oct-09 20:32 
GeneralRe: How to Register mshtml dll in to GAC ? Urgent. Pin
Jacobb Michael30-Oct-09 20:43
Jacobb Michael30-Oct-09 20:43 
AnswerRe: How to Register mshtml dll in to GAC ? Urgent. Pin
Jacobb Michael31-Oct-09 0:52
Jacobb Michael31-Oct-09 0:52 
GeneralRe: How to Register mshtml dll in to GAC ? Urgent. Pin
Christian Graus31-Oct-09 0:53
protectorChristian Graus31-Oct-09 0:53 
QuestionHow to monitor the speed of writting into or reading out from the hard disk? Pin
sinron30-Oct-09 20:17
sinron30-Oct-09 20:17 
AnswerRe: How to monitor the speed of writting into or reading out from the hard disk? Pin
Christian Graus30-Oct-09 20:33
protectorChristian Graus30-Oct-09 20:33 
GeneralRe: How to monitor the speed of writting into or reading out from the hard disk? Pin
sinron30-Oct-09 23:07
sinron30-Oct-09 23:07 
GeneralRe: How to monitor the speed of writting into or reading out from the hard disk? Pin
Christian Graus31-Oct-09 0:54
protectorChristian Graus31-Oct-09 0:54 
GeneralRe: How to monitor the speed of writting into or reading out from the hard disk? Pin
Eddy Vluggen31-Oct-09 1:04
professionalEddy Vluggen31-Oct-09 1:04 
Questionis this a cache problem or what? Pin
niranjanR30-Oct-09 18:22
niranjanR30-Oct-09 18:22 
AnswerRe: is this a cache problem or what? Pin
Christian Graus30-Oct-09 19:17
protectorChristian Graus30-Oct-09 19:17 
GeneralRe: is this a cache problem or what? Pin
niranjanR30-Oct-09 19:44
niranjanR30-Oct-09 19:44 
GeneralRe: is this a cache problem or what? Pin
Christian Graus30-Oct-09 20:07
protectorChristian Graus30-Oct-09 20:07 
GeneralRe: is this a cache problem or what? Pin
niranjanR30-Oct-09 20:24
niranjanR30-Oct-09 20:24 
GeneralRe: is this a cache problem or what? Pin
Christian Graus30-Oct-09 20:30
protectorChristian Graus30-Oct-09 20:30 
GeneralRe: is this a cache problem or what? Pin
niranjanR30-Oct-09 21:10
niranjanR30-Oct-09 21:10 
GeneralRe: is this a cache problem or what? Pin
Christian Graus31-Oct-09 0:51
protectorChristian Graus31-Oct-09 0:51 
AnswerRe: is this a cache problem or what? Pin
Richard MacCutchan31-Oct-09 0:30
mveRichard MacCutchan31-Oct-09 0:30 
niranjanR wrote:
I am very much surprised as well as confused on this issue... I can't resolve it... I thank you in advance for any help.


From the portion of code you have posted it looks to me like it is working as coded. Your program is a set of sequential operations which you try to run in parallel. So sometimes you get the result you expect and sometimes not, depending on which thread gets run first. Your use of threads in this case is superfluous as it does nothing to improve the program.

As Christian said earlier, you would be better to spend more time getting familiar with C# basics before worrying about multi-threading.

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.