Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
GeneralRe: ASCII code problem Pin
Jamman14-Feb-08 0:09
Jamman14-Feb-08 0:09 
GeneralRe: ASCII code problem Pin
J a a n s14-Feb-08 4:56
professionalJ a a n s14-Feb-08 4:56 
GeneralWindows Media Player and Multi Threaded Applications Pin
jimmy2shoes13-Feb-08 22:43
jimmy2shoes13-Feb-08 22:43 
GeneralCheck Header in Excel Pin
drawmylyfe13-Feb-08 22:32
drawmylyfe13-Feb-08 22:32 
GeneralRe: Check Header in Excel Pin
JeremH13-Feb-08 23:10
JeremH13-Feb-08 23:10 
GeneralRe: Check Header in Excel Pin
drawmylyfe13-Feb-08 23:18
drawmylyfe13-Feb-08 23:18 
GeneralRe: Check Header in Excel Pin
ag4667714-Feb-08 0:02
ag4667714-Feb-08 0:02 
QuestionHow Do I correct Thread Program? Pin
pubududilena13-Feb-08 22:29
pubududilena13-Feb-08 22:29 
Hi All,

I need to run 3 methods parallaly.Then I have used Threading for that. Here is the code.

public void threadtest()
{
Thread SpecialThread = new Thread(new ThreadStart(this.GetSpecial));
Thread BulkThread = new Thread(new ThreadStart(this.GetBulk));
Thread NormalThread = new Thread(new ThreadStart(this.GetNormal));

SpecialThread.Start();
BulkThread.Start();
NormalThread.Start();

SpecialThread.Join();
BulkThread.Join();
NormalThread.Join();


while((NormalThread.ThreadState==System.Threading.ThreadState.Running) ||
(BulkThread.ThreadState==System.Threading.ThreadState.Running) ||
(SpecialThread.ThreadState==System.Threading.ThreadState.Running)
)

{
}
}

But most of time one or two threads are going to aborted or something happen and I loose their results.Sometimes this worked properly and I can get all results from 3 methods.

Can any one correct this code?
AnswerRe: How Do I correct Thread Program? Pin
Harvey Saayman13-Feb-08 22:45
Harvey Saayman13-Feb-08 22:45 
GeneralCall WebBrowser Pin
jason_mf13-Feb-08 20:59
jason_mf13-Feb-08 20:59 
GeneralRe: Call WebBrowser Pin
Christian Graus13-Feb-08 21:09
protectorChristian Graus13-Feb-08 21:09 
GeneralRe: Call WebBrowser Pin
jason_mf13-Feb-08 21:31
jason_mf13-Feb-08 21:31 
GeneralRe: Call WebBrowser Pin
Pete O'Hanlon14-Feb-08 2:15
mvePete O'Hanlon14-Feb-08 2:15 
GeneralDisplaying Values of child form in the Parent .... Pin
peter rankel13-Feb-08 20:37
peter rankel13-Feb-08 20:37 
AnswerRe: Displaying Values of child form in the Parent .... Pin
Martin#13-Feb-08 20:46
Martin#13-Feb-08 20:46 
AnswerRe: Displaying Values of child form in the Parent .... Pin
abed almuti zalloum13-Feb-08 22:17
abed almuti zalloum13-Feb-08 22:17 
GeneralRe: Displaying Values of child form in the Parent .... Pin
peter rankel13-Feb-08 23:33
peter rankel13-Feb-08 23:33 
GeneralRe: Displaying Values of child form in the Parent .... Pin
Colin Angus Mackay14-Feb-08 0:26
Colin Angus Mackay14-Feb-08 0:26 
GeneralDate format in DateTime variable Pin
John Sundar13-Feb-08 20:35
John Sundar13-Feb-08 20:35 
GeneralRe: Date format in DateTime variable Pin
Vikram A Punathambekar13-Feb-08 21:32
Vikram A Punathambekar13-Feb-08 21:32 
QuestionHow to get points inside polygon Pin
free_soul42413-Feb-08 20:22
free_soul42413-Feb-08 20:22 
AnswerRe: How to get points inside polygon Pin
Giorgi Dalakishvili13-Feb-08 20:51
mentorGiorgi Dalakishvili13-Feb-08 20:51 
GeneralRe: How to get points inside polygon Pin
free_soul42413-Feb-08 21:24
free_soul42413-Feb-08 21:24 
AnswerRe: How to get points inside polygon Pin
Martin#13-Feb-08 21:05
Martin#13-Feb-08 21:05 
AnswerRe: How to get points inside polygon Pin
Luc Pattyn13-Feb-08 21:54
sitebuilderLuc Pattyn13-Feb-08 21:54 

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.