Click here to Skip to main content
15,914,924 members
Home / Discussions / C#
   

C#

 
GeneralExcel chart in c# Pin
JeremH13-Feb-08 22:57
JeremH13-Feb-08 22:57 
QuestionIs there a way to develop FOREACH loop results with Threading? Pin
pubududilena13-Feb-08 22:48
pubududilena13-Feb-08 22:48 
AnswerRe: Is there a way to develop FOREACH loop results with Threading? Pin
Christian Graus13-Feb-08 23:16
protectorChristian Graus13-Feb-08 23:16 
AnswerRe: Is there a way to develop FOREACH loop results with Threading? Pin
Vikram A Punathambekar13-Feb-08 23:21
Vikram A Punathambekar13-Feb-08 23:21 
GeneralNoSuitableGraphicsDeviceException was unhandled Pin
NarVish13-Feb-08 22:47
NarVish13-Feb-08 22:47 
GeneralRe: NoSuitableGraphicsDeviceException was unhandled Pin
Christian Graus13-Feb-08 23:18
protectorChristian Graus13-Feb-08 23:18 
GeneralRe: NoSuitableGraphicsDeviceException was unhandled Pin
NarVish14-Feb-08 0:13
NarVish14-Feb-08 0:13 
GeneralRe: NoSuitableGraphicsDeviceException was unhandled Pin
Christian Graus14-Feb-08 0:20
protectorChristian Graus14-Feb-08 0:20 
GeneralASCII code problem [modified] Pin
Jamman13-Feb-08 22:44
Jamman13-Feb-08 22:44 
GeneralRe: ASCII code problem Pin
Christian Graus13-Feb-08 23:23
protectorChristian Graus13-Feb-08 23:23 
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 

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.