Click here to Skip to main content
15,905,325 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET 2005: 32-bit vs 64-bit code Pin
Dave Kreskowiak6-Sep-05 10:12
mveDave Kreskowiak6-Sep-05 10:12 
AnswerRe: .NET 2005: 32-bit vs 64-bit code Pin
Judah Gabriel Himango6-Sep-05 11:35
sponsorJudah Gabriel Himango6-Sep-05 11:35 
QuestionProgram Structure Pin
Kash6-Sep-05 6:21
Kash6-Sep-05 6:21 
AnswerRe: Program Strucutr Pin
Judah Gabriel Himango6-Sep-05 6:32
sponsorJudah Gabriel Himango6-Sep-05 6:32 
GeneralRe: Program Structure Pin
Kash6-Sep-05 6:45
Kash6-Sep-05 6:45 
AnswerRe: Program Structure Pin
leppie6-Sep-05 7:06
leppie6-Sep-05 7:06 
Question.Net CF 2.0 & Pocket Internet Explorer Pin
tomdz6-Sep-05 6:20
tomdz6-Sep-05 6:20 
Questionfaster access memory Pin
Sasuko6-Sep-05 6:18
Sasuko6-Sep-05 6:18 
AnswerRe: faster access memory Pin
Judah Gabriel Himango6-Sep-05 6:26
sponsorJudah Gabriel Himango6-Sep-05 6:26 
AnswerRe: faster access memory Pin
Dan Neely6-Sep-05 7:06
Dan Neely6-Sep-05 7:06 
AnswerRe: faster access memory Pin
Andrew Kirillov6-Sep-05 8:25
Andrew Kirillov6-Sep-05 8:25 
QuestionDirectPlay Problem with C# Pin
Zeeshan Gulzar6-Sep-05 5:20
Zeeshan Gulzar6-Sep-05 5:20 
QuestionSaved file images Pin
Jerry Hammond6-Sep-05 4:49
Jerry Hammond6-Sep-05 4:49 
AnswerRe: Saved file images Pin
Nick Parker6-Sep-05 8:44
protectorNick Parker6-Sep-05 8:44 
GeneralRe: Saved file images Pin
Jerry Hammond6-Sep-05 10:40
Jerry Hammond6-Sep-05 10:40 
QuestionWindows Services Pin
Member 19735946-Sep-05 4:39
Member 19735946-Sep-05 4:39 
QuestionClient/Server Communication Pin
batmanAgen6-Sep-05 4:35
batmanAgen6-Sep-05 4:35 
AnswerRe: Client/Server Communication Pin
John Fisher6-Sep-05 4:45
John Fisher6-Sep-05 4:45 
Questionweb.config Help Pin
Brendan Vogt6-Sep-05 3:25
Brendan Vogt6-Sep-05 3:25 
AnswerRe: web.config Help Pin
Mohamad Al Husseiny6-Sep-05 4:27
Mohamad Al Husseiny6-Sep-05 4:27 
QuestionBest practice with threads? Pin
6-Sep-05 3:13
suss6-Sep-05 3:13 
AnswerRe: Best practice with threads? Pin
John Fisher6-Sep-05 4:36
John Fisher6-Sep-05 4: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 4:46
sitebuilderAndy Brummer6-Sep-05 4:46 
Questioncode management software Pin
Mridang Agarwalla6-Sep-05 2:50
Mridang Agarwalla6-Sep-05 2:50 
QuestionFaulting application Pin
BenniEvald6-Sep-05 2:24
BenniEvald6-Sep-05 2:24 

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.