Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Download File Pin
il_masacratore15-Jan-07 3:26
il_masacratore15-Jan-07 3:26 
AnswerRe: How to Download File Pin
Mark J. Miller15-Jan-07 3:38
Mark J. Miller15-Jan-07 3:38 
AnswerRe: How to Download File Pin
Scott Dorman15-Jan-07 6:36
professionalScott Dorman15-Jan-07 6:36 
Questionchat program Pin
hadad15-Jan-07 3:08
hadad15-Jan-07 3:08 
AnswerRe: chat program Pin
il_masacratore15-Jan-07 3:29
il_masacratore15-Jan-07 3:29 
QuestionToolBoxBitmap Pin
aSarafian15-Jan-07 2:48
aSarafian15-Jan-07 2:48 
AnswerRe: ToolBoxBitmap Pin
Fabio Zanetta15-Jan-07 3:26
Fabio Zanetta15-Jan-07 3:26 
GeneralRe: ToolBoxBitmap Pin
aSarafian15-Jan-07 5:09
aSarafian15-Jan-07 5:09 
GeneralRe: ToolBoxBitmap Pin
Fabio Zanetta15-Jan-07 5:19
Fabio Zanetta15-Jan-07 5:19 
Questionpaint on ListView isn't working Pin
teejayem15-Jan-07 2:41
teejayem15-Jan-07 2:41 
AnswerRe: web service Pin
Guffa15-Jan-07 2:37
Guffa15-Jan-07 2:37 
QuestionI can not open new form.It gives errors in vs 2005 Pin
Member 372644115-Jan-07 1:53
Member 372644115-Jan-07 1:53 
GeneralRe: I can not open new form.It gives errors in vs 2005 Pin
Seishin#15-Jan-07 2:04
Seishin#15-Jan-07 2:04 
Questionmultithreading problem Pin
justintimberlake15-Jan-07 1:51
justintimberlake15-Jan-07 1:51 
hi all,
i have a multithread program that is used to parse certain xml file and then insert it into database and delete. the xml files comes continuously so i have a timer on every instance of which i check the directory so for each file in a directory i create a theread.
it all works fine as long a i get file of size 1kb but if the file gets larger then it takes time to inset intodatabse and hence to delete it so in another instance of time interval the same file gets repeated. the file can be of larger size up to 5mb now if i disable timer and then process it every things work fine but then other small file also gets stoped as larger files is being processed.
now what shall i do so that i may not have to disable timer and file doesnt get repeted.




public void CallOnCreated()
{

DirectoryInfo dirInfo = new DirectoryInfo(@"C:/datahandler1");
fInfo = dirInfo.GetFiles("*.xml");

threads= new Thread[fInfo.Length];
sFileNames=new string[fInfo.Length];

if(fInfo.Length!=0)
{
for(int i=0;i
AnswerRe: multithreading problem Pin
Russell Jones15-Jan-07 2:47
Russell Jones15-Jan-07 2:47 
AnswerRe: multithreading problem Pin
coolestCoder15-Jan-07 3:34
coolestCoder15-Jan-07 3:34 
Questionsize of text array - limitations Pin
electriac15-Jan-07 1:49
electriac15-Jan-07 1:49 
AnswerRe: size of text array - limitations Pin
Pete O'Hanlon15-Jan-07 2:01
mvePete O'Hanlon15-Jan-07 2:01 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 2:06
electriac15-Jan-07 2:06 
GeneralRe: size of text array - limitations Pin
Pete O'Hanlon15-Jan-07 2:18
mvePete O'Hanlon15-Jan-07 2:18 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 2:47
electriac15-Jan-07 2:47 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 2:58
electriac15-Jan-07 2:58 
GeneralRe: size of text array - limitations Pin
Pete O'Hanlon15-Jan-07 3:07
mvePete O'Hanlon15-Jan-07 3:07 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 3:14
electriac15-Jan-07 3:14 
GeneralRe: size of text array - limitations Pin
Dan Neely15-Jan-07 3:23
Dan Neely15-Jan-07 3:23 

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.