Click here to Skip to main content
15,907,396 members
Home / Discussions / C#
   

C#

 
QuestionRelated to mobile Pin
Ch.Gayatri Subudhi11-May-09 18:10
Ch.Gayatri Subudhi11-May-09 18:10 
AnswerRe: Related to mobile Pin
dan!sh 11-May-09 18:32
professional dan!sh 11-May-09 18:32 
AnswerRe: Related to mobile Pin
Dave Kreskowiak11-May-09 19:07
mveDave Kreskowiak11-May-09 19:07 
GeneralRe: Related to mobile Pin
Ch.Gayatri Subudhi11-May-09 19:15
Ch.Gayatri Subudhi11-May-09 19:15 
AnswerRe: Related to mobile Pin
Rajesh Anuhya11-May-09 19:26
professionalRajesh Anuhya11-May-09 19:26 
GeneralRe: Related to mobile Pin
Ch.Gayatri Subudhi11-May-09 19:37
Ch.Gayatri Subudhi11-May-09 19:37 
GeneralRe: Related to mobile Pin
King Julien11-May-09 20:00
King Julien11-May-09 20:00 
QuestionRun Thread step by step Pin
Abdul Rahman Hamidy11-May-09 18:07
Abdul Rahman Hamidy11-May-09 18:07 
Dear All,
I am uploading files to ftp server, which each file gets uploaded in a thread.
i am using the following code to upload files to ftp, upload and every thing is successfull, but my concern is the priority of uploading files.
in following code the file with the smallest size gets uploaded first, but i want that the first file should be uploaded before second and second before third and so on.
foreach (string str in filesToUpload)
 {
  if (str.EndsWith(".xml"))
    ThreadPool.QueueUserWorkItem(new WaitCallback(uploadFile),(object)str);
 }

I also used WaitHandles and AutoResetEvent, it did help but it stack my computer and also my UI.
so how can i wait one uploading before another gets uploaed or started?

Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan

AnswerRe: Run Thread step by step Pin
Dave Kreskowiak11-May-09 19:06
mveDave Kreskowiak11-May-09 19:06 
GeneralRe: Run Thread step by step Pin
Abdul Rahman Hamidy11-May-09 20:03
Abdul Rahman Hamidy11-May-09 20:03 
QuestionPass class of objects as parameter, possible? Pin
Wendell.S11-May-09 16:59
Wendell.S11-May-09 16:59 
AnswerRe: Pass class of objects as parameter, possible? Pin
N a v a n e e t h11-May-09 17:17
N a v a n e e t h11-May-09 17:17 
AnswerRe: Pass class of objects as parameter, possible? Pin
Mycroft Holmes11-May-09 18:00
professionalMycroft Holmes11-May-09 18:00 
AnswerRe: Pass class of objects as parameter, possible? Pin
john1990_115-May-09 13:54
john1990_115-May-09 13:54 
QuestionLarge Memory usage Pin
krishnan.s11-May-09 16:55
krishnan.s11-May-09 16:55 
AnswerRe: Large Memory usage Pin
Vikram A Punathambekar11-May-09 18:40
Vikram A Punathambekar11-May-09 18:40 
AnswerRe: Large Memory usage Pin
Dave Kreskowiak11-May-09 19:04
mveDave Kreskowiak11-May-09 19:04 
Questionlearning italian language by lists of words Pin
john1990_111-May-09 15:45
john1990_111-May-09 15:45 
AnswerRe: learning italian language by lists of words Pin
Dave Kreskowiak11-May-09 16:26
mveDave Kreskowiak11-May-09 16:26 
GeneralRe: learning italian language by lists of words Pin
Tom Deketelaere11-May-09 22:38
professionalTom Deketelaere11-May-09 22:38 
GeneralRe: learning italian language by lists of words Pin
john1990_112-May-09 0:02
john1990_112-May-09 0:02 
GeneralRe: learning italian language by lists of words Pin
Tom Deketelaere12-May-09 0:09
professionalTom Deketelaere12-May-09 0:09 
GeneralRe: learning italian language by lists of words Pin
Dave Kreskowiak12-May-09 2:04
mveDave Kreskowiak12-May-09 2:04 
QuestionopenfileDialog error please help Pin
rctriplane11-May-09 11:16
rctriplane11-May-09 11:16 
AnswerRe: openfileDialog error please help Pin
Henry Minute11-May-09 13:10
Henry Minute11-May-09 13:10 

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.