Click here to Skip to main content
15,178,008 members
Home / Discussions / C#
   

C#

 
GeneralRe: Saved file images Pin
Jerry Hammond6-Sep-05 11:40
MemberJerry Hammond6-Sep-05 11:40 
QuestionWindows Services Pin
Member 19735946-Sep-05 5:39
MemberMember 19735946-Sep-05 5:39 
QuestionClient/Server Communication Pin
batmanAgen6-Sep-05 5:35
MemberbatmanAgen6-Sep-05 5:35 
AnswerRe: Client/Server Communication Pin
John Fisher6-Sep-05 5:45
MemberJohn Fisher6-Sep-05 5:45 
Questionweb.config Help Pin
Brendan Vogt6-Sep-05 4:25
MemberBrendan Vogt6-Sep-05 4:25 
AnswerRe: web.config Help Pin
Mohamad Al Husseiny6-Sep-05 5:27
MemberMohamad Al Husseiny6-Sep-05 5:27 
QuestionBest practice with threads? Pin
6-Sep-05 4:13
suss6-Sep-05 4:13 
AnswerRe: Best practice with threads? Pin
John Fisher6-Sep-05 5:36
MemberJohn Fisher6-Sep-05 5:36 
Depending upon how many files you may be converting simultaneously, you could run into slower performance because of too many threads. So, the ideal solution would be to use a thread pool of some kind. And here, you're in luck! There is an easy-to-use thread pool built into the .NET Framework.

With no more information that what you've described, I would suggest that you do something similar to the converter-thread idea. Combine this with the built-in thread pool capabilities of the .NET Framework.

To do this, either create events in the first and third modules, having the converter subscribe to them. Or, create a delegate in the converter module, which the first and third modules can access. Then, instead of simply calling the delegate directly, use the BeginInvoke() method. (Also, make sure you handle things properly with EndInvoke when the callback is triggered. Otherwise, you can have leaks.) This method will use the built-in thread pool to execute the function used by the delegate!





John

"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

AnswerRe: Best practice with threads? Pin
Andy Brummer6-Sep-05 5:46
sitebuilderAndy Brummer6-Sep-05 5:46 
Questioncode management software Pin
Mridang Agarwalla6-Sep-05 3:50
MemberMridang Agarwalla6-Sep-05 3:50 
QuestionFaulting application Pin
BenniEvald6-Sep-05 3:24
MemberBenniEvald6-Sep-05 3:24 
QuestionFill After Insert Fails Pin
rich_wenger6-Sep-05 3:00
Memberrich_wenger6-Sep-05 3:00 
AnswerRe: Fill After Insert Fails Pin
John Fisher6-Sep-05 5:53
MemberJohn Fisher6-Sep-05 5:53 
QuestionUnload DOM Pin
ksanju10006-Sep-05 2:28
Memberksanju10006-Sep-05 2:28 
AnswerRe: Unload DOM Pin
John Fisher6-Sep-05 6:21
MemberJohn Fisher6-Sep-05 6:21 
GeneralRe: Unload DOM Pin
ksanju10006-Sep-05 21:35
Memberksanju10006-Sep-05 21:35 
GeneralRe: Unload DOM Pin
John Fisher7-Sep-05 5:09
MemberJohn Fisher7-Sep-05 5:09 
QuestionWeb Services in VS 2003 Pin
seee sharp6-Sep-05 2:22
Memberseee sharp6-Sep-05 2:22 
QuestionRichetextbox problem again Pin
snouto6-Sep-05 2:13
Membersnouto6-Sep-05 2:13 
AnswerRe: Richetextbox problem again Pin
S. Senthil Kumar6-Sep-05 2:51
MemberS. Senthil Kumar6-Sep-05 2:51 
GeneralRe: Richetextbox problem again Pin
snouto6-Sep-05 3:08
Membersnouto6-Sep-05 3:08 
GeneralRe: Richetextbox problem again Pin
S. Senthil Kumar6-Sep-05 3:46
MemberS. Senthil Kumar6-Sep-05 3:46 
QuestionBase Class problem with forms Pin
Russell Jones6-Sep-05 1:34
MemberRussell Jones6-Sep-05 1:34 
AnswerRe: Base Class problem with forms Pin
S. Senthil Kumar6-Sep-05 3:00
MemberS. Senthil Kumar6-Sep-05 3:00 
GeneralRe: Base Class problem with forms Pin
Russell Jones6-Sep-05 3:33
MemberRussell Jones6-Sep-05 3:33 

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.