Click here to Skip to main content
15,897,371 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralApplication/Configuration Data Pin
Dave Moor (the real one)7-Jan-08 4:21
Dave Moor (the real one)7-Jan-08 4:21 
GeneralRe: Application/Configuration Data Pin
Mark Salsbery7-Jan-08 9:38
Mark Salsbery7-Jan-08 9:38 
GeneralBackward Compatibility in Visual Studio .NET 2003 Pin
Ashraf Tirawi6-Jan-08 23:40
Ashraf Tirawi6-Jan-08 23:40 
QuestionHow to copy a reference type ? Pin
devboycpp6-Jan-08 21:15
devboycpp6-Jan-08 21:15 
AnswerRe: How to copy a reference type ? Pin
Urs Enzler7-Jan-08 3:08
Urs Enzler7-Jan-08 3:08 
GeneralThreading in c# Pin
Prabhat0036-Jan-08 17:36
Prabhat0036-Jan-08 17:36 
GeneralRe: Threading in c# Pin
Steppo7-Jan-08 0:52
Steppo7-Jan-08 0:52 
GeneralRe: Threading in c# Pin
Prabhat0037-Jan-08 17:42
Prabhat0037-Jan-08 17:42 
Member 2998912,Thanx for the reply.
"dont care" the server part means that it is okay if server part becomes hang also.Below is the code i used to create 400 folders and threading is also required.

//Method to create folder

int j=0;
public void CreateFolders()
{

Directory.CreateDirectory(@"d:\test1\" + j );

string name = "namobuddha.jpeg";
string filename = @"d:\test1\p\namobuddha.jpeg";
Image im = Image.FromFile(filename);

MemoryStream ms = new MemoryStream();
im.Save(ms, System.Drawing.Imaging.ImageFormat.Gif);
byte[] image1 = ms.ToArray();

//for the method of server part

Service a1 = new Service();

a1.capture2(image1, j.ToString(), name);// method from webservice
j=j+1;

}
public void ForThread()
{


Thread[] t1 = new Thread[400];

for (int i = 0; i <= 399; i++)
{
t1[i] = new Thread(new ThreadStart(CreateFolders));
t1[i].Start();
t1[i].Join();
}
}


Can there be any solution using the TimeOut property in server part or client part.
GeneralRe: Threading in c# Pin
Luc Pattyn7-Jan-08 18:04
sitebuilderLuc Pattyn7-Jan-08 18:04 
GeneralRe: Threading in c# Pin
Prabhat0037-Jan-08 18:37
Prabhat0037-Jan-08 18:37 
GeneralRe: Threading in c# Pin
Luc Pattyn8-Jan-08 1:58
sitebuilderLuc Pattyn8-Jan-08 1:58 
GeneralProblem in uploading files using Mtom, Streamed transfered Pin
PavanPT5-Jan-08 14:29
PavanPT5-Jan-08 14:29 
GeneralRe: Problem in uploading files using Mtom, Streamed transfered Pin
Paul Conrad6-Jan-08 10:10
professionalPaul Conrad6-Jan-08 10:10 
GeneralMDAC Pin
agauravgr84-Jan-08 23:57
agauravgr84-Jan-08 23:57 
GeneralRe: MDAC Pin
Scott Dorman5-Jan-08 3:34
professionalScott Dorman5-Jan-08 3:34 
QuestionRe: MDAC Pin
agauravgr85-Jan-08 3:41
agauravgr85-Jan-08 3:41 
GeneralRe: MDAC Pin
Scott Dorman5-Jan-08 3:59
professionalScott Dorman5-Jan-08 3:59 
GeneralRe: MDAC Pin
Pete O'Hanlon5-Jan-08 9:43
mvePete O'Hanlon5-Jan-08 9:43 
GeneralRe: MDAC Pin
Scott Dorman6-Jan-08 5:16
professionalScott Dorman6-Jan-08 5:16 
GeneralRe: MDAC Pin
Mike Dimmick6-Jan-08 7:46
Mike Dimmick6-Jan-08 7:46 
GeneralRe: MDAC Pin
Scott Dorman6-Jan-08 7:50
professionalScott Dorman6-Jan-08 7:50 
QuestionHelp Needed Pin
Arunava354-Jan-08 18:52
Arunava354-Jan-08 18:52 
GeneralRe: Help Needed Pin
DigiOz Multimedia5-Jan-08 8:51
DigiOz Multimedia5-Jan-08 8:51 
GeneralRe: Help Needed Pin
Arunava355-Jan-08 16:56
Arunava355-Jan-08 16:56 
GeneralRe: Help Needed Pin
DigiOz Multimedia6-Jan-08 2:32
DigiOz Multimedia6-Jan-08 2:32 

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.