Click here to Skip to main content
15,868,141 members
Home / Discussions / C#
   

C#

 
AnswerRe: Resolving a mapped drive Pin
Pete O'Hanlon13-Sep-07 1:12
subeditorPete O'Hanlon13-Sep-07 1:12 
GeneralRe: Resolving a mapped drive Pin
benjymous13-Sep-07 1:37
benjymous13-Sep-07 1:37 
GeneralRe: Resolving a mapped drive Pin
Big Daddy Farang13-Sep-07 11:51
Big Daddy Farang13-Sep-07 11:51 
Questionusing Scrollbar for panning in my Graphics Editor Pin
a_david12313-Sep-07 0:13
a_david12313-Sep-07 0:13 
QuestionWhy The remote server returned an error: (403) Forbidden? [modified] Pin
bug_aonz12-Sep-07 23:57
bug_aonz12-Sep-07 23:57 
AnswerRe: Why The remote server returned an error: (403) Forbidden? Pin
Le centriste13-Sep-07 0:02
Le centriste13-Sep-07 0:02 
GeneralRe: Why The remote server returned an error: (403) Forbidden? Pin
bug_aonz13-Sep-07 0:23
bug_aonz13-Sep-07 0:23 
GeneralRe: Why The remote server returned an error: (403) Forbidden? Pin
Le centriste13-Sep-07 1:14
Le centriste13-Sep-07 1:14 
Maybe you are blowing off the maximum number of concurrent downloads. All threads are downloading concurrently.

This is good, except that your DownloadItem calls does not have a safe guard. Suppose someone passes an array list of thousands of files to download.

I would make an app.config file that would contain a value for the maximum of concurrent downloads, and queue the rest of the items to download.

If you allow me to point out, don't use the System.Threading.Thread class to perform a job which terminates the thread when done, like downloading a file. Consider using the BackgroundWorker[^] class or asynchronous programming using delegates[^] (BackgroundWorker would be my choice here).

The main advantage of the above is that the runtime uses a thread from a thread pool it secretly manages for you, so you don't have the overhead of starting/managing your threads.

-----

If atheism is a religion, then not collecting stamps is a hobby. -- Unknown

God is the only being who, to rule, does not need to exist. -- Charles Baudelaire

GeneralRe: Why The remote server returned an error: (403) Forbidden? Pin
bug_aonz13-Sep-07 16:30
bug_aonz13-Sep-07 16:30 
QuestionSearch for a file Pin
P_Elza12-Sep-07 23:51
P_Elza12-Sep-07 23:51 
AnswerRe: Search for a file Pin
Pete O'Hanlon12-Sep-07 23:59
subeditorPete O'Hanlon12-Sep-07 23:59 
QuestionInserting a formula in excel Pin
lourensG12-Sep-07 23:51
lourensG12-Sep-07 23:51 
AnswerRe: Inserting a formula in excel Pin
Jimmanuel13-Sep-07 3:02
Jimmanuel13-Sep-07 3:02 
GeneralRe: Inserting a formula in excel Pin
lourensG13-Sep-07 3:10
lourensG13-Sep-07 3:10 
QuestionStrange Issue:Window Service Pin
ramdil12-Sep-07 23:48
ramdil12-Sep-07 23:48 
QuestionRemoting events sometimes failing Pin
Lasse Offt12-Sep-07 23:43
Lasse Offt12-Sep-07 23:43 
AnswerRe: Remoting events sometimes failing Pin
Lasse Offt13-Sep-07 21:19
Lasse Offt13-Sep-07 21:19 
AnswerRe: Remoting events sometimes failing Pin
John Whitmire2-Nov-07 6:17
professionalJohn Whitmire2-Nov-07 6:17 
QuestionString table equivalent in C# Pin
Keshav V. Kamat12-Sep-07 23:42
Keshav V. Kamat12-Sep-07 23:42 
AnswerRe: String table equivalent in C# Pin
Paul Conrad14-Sep-07 19:06
professionalPaul Conrad14-Sep-07 19:06 
QuestionUsing C , C++, VC++ code libraries in C#.net Pin
venkatinaidu12-Sep-07 23:39
venkatinaidu12-Sep-07 23:39 
AnswerRe: Using C , C++, VC++ code libraries in C#.net Pin
Giorgi Dalakishvili12-Sep-07 23:47
mentorGiorgi Dalakishvili12-Sep-07 23:47 
Question.NET dll in asp/vb code Pin
mpavas12-Sep-07 23:32
mpavas12-Sep-07 23:32 
AnswerRe: .NET dll in asp/vb code Pin
Sandeep Akhare12-Sep-07 23:33
Sandeep Akhare12-Sep-07 23:33 
GeneralRe: .NET dll in asp/vb code Pin
mpavas12-Sep-07 23:36
mpavas12-Sep-07 23:36 

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.