Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
GeneralRe: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond"-Exception Pin
gudlanur16-Aug-11 20:59
gudlanur16-Aug-11 20:59 
QuestionSimplest Question Regarding Deployment Pin
sindhutiwari13-Feb-08 23:02
sindhutiwari13-Feb-08 23:02 
GeneralRe: Simplest Question Regarding Deployment Pin
Christian Graus13-Feb-08 23:09
protectorChristian Graus13-Feb-08 23:09 
GeneralRe: Simplest Question Regarding Deployment Pin
sindhutiwari13-Feb-08 23:15
sindhutiwari13-Feb-08 23:15 
GeneralRe: Simplest Question Regarding Deployment Pin
Christian Graus13-Feb-08 23:50
protectorChristian Graus13-Feb-08 23:50 
QuestionSimplest Question Regarding Deployment Pin
sindhutiwari13-Feb-08 23:01
sindhutiwari13-Feb-08 23:01 
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 
HI All,
I have written a FOREACH loop to get results .Here it is.
foreach(NFConsolG lobjcongds in lobjCons.GList)
{

if(lobjcongds.Status==1)
{
try
{
lobjcongds.ConName=lobjCon1.TradingName;

units=this.GetPublish1(sc,lobjcongds);

if(units!=null && units.Length>0 && units[0]!=null && units[0].GetType().Equals(typeof(Unit)))
{
UnitArrayList.AddRange(units);

}
}
catch{}
}

}

I need to call this.GetPublish1() method using Threads.But it is inside a loop. Is there a way to use Threads for this FOREACH loop?

Please advice me.
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 
AnswerRe: How Do I correct Thread Program? Pin
Harvey Saayman13-Feb-08 22:45
Harvey Saayman13-Feb-08 22:45 

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.