Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
AnswerRe: As Keyword, conversion of derived class to base class type Pin
OriginalGriff24-Sep-09 6:15
mveOriginalGriff24-Sep-09 6:15 
QuestionHow to add Xml Node in Microsoft Word doucment by using C# (VSTO) Pin
Shaik Haneef24-Sep-09 3:07
Shaik Haneef24-Sep-09 3:07 
QuestionDateTime difference Pin
Matt Cavanagh24-Sep-09 2:31
Matt Cavanagh24-Sep-09 2:31 
AnswerRe: DateTime difference Pin
OriginalGriff24-Sep-09 2:36
mveOriginalGriff24-Sep-09 2:36 
GeneralRe: DateTime difference Pin
Matt Cavanagh24-Sep-09 4:14
Matt Cavanagh24-Sep-09 4:14 
AnswerRe: DateTime difference Pin
Not Active24-Sep-09 2:37
mentorNot Active24-Sep-09 2:37 
GeneralRe: DateTime difference Pin
Matt Cavanagh24-Sep-09 4:17
Matt Cavanagh24-Sep-09 4:17 
AnswerRe: DateTime difference Pin
Luc Pattyn24-Sep-09 2:45
sitebuilderLuc Pattyn24-Sep-09 2:45 
GeneralRe: DateTime difference Pin
Matt Cavanagh24-Sep-09 4:17
Matt Cavanagh24-Sep-09 4:17 
QuestionTiff Image Processing Pin
Lalit singh24-Sep-09 1:51
Lalit singh24-Sep-09 1:51 
AnswerRe: Tiff Image Processing Pin
stancrm24-Sep-09 2:17
stancrm24-Sep-09 2:17 
Questioncomment utiliser le MultiColumnComb de Janus WinForms Controls? Pin
asma0724-Sep-09 1:22
asma0724-Sep-09 1:22 
AnswerRe: comment utiliser le MultiColumnComb de Janus WinForms Controls? Pin
Keith Barrow24-Sep-09 1:52
professionalKeith Barrow24-Sep-09 1:52 
GeneralRe: comment utiliser le MultiColumnComb de Janus WinForms Controls? Pin
Wes Aday24-Sep-09 9:12
professionalWes Aday24-Sep-09 9:12 
AnswerRe: comment utiliser le MultiColumnComb de Janus WinForms Controls? Pin
EliottA24-Sep-09 2:53
EliottA24-Sep-09 2:53 
AnswerRe: comment utiliser le MultiColumnComb de Janus WinForms Controls? Pin
Abhishek Sur24-Sep-09 3:27
professionalAbhishek Sur24-Sep-09 3:27 
GeneralRe: comment utiliser le MultiColumnComb de Janus WinForms Controls? Pin
asma0724-Sep-09 3:51
asma0724-Sep-09 3:51 
QuestionUsing too many timers in a program Pin
teknolog12324-Sep-09 0:50
teknolog12324-Sep-09 0:50 
AnswerRe: Using too many timers in a program Pin
OriginalGriff24-Sep-09 1:05
mveOriginalGriff24-Sep-09 1:05 
GeneralRe: Using too many timers in a program Pin
teknolog12324-Sep-09 2:07
teknolog12324-Sep-09 2:07 
GeneralRe: Using too many timers in a program Pin
OriginalGriff24-Sep-09 2:31
mveOriginalGriff24-Sep-09 2:31 
AnswerRe: Using too many timers in a program Pin
Luc Pattyn24-Sep-09 1:28
sitebuilderLuc Pattyn24-Sep-09 1:28 
Hi,

I see no problem in running 50 timers at once. (I tested with Windows.Forms.Timers)
If all intervals are 100 msec, then:
1) your average handler should finish in 2 milliseconds, otherwise your app will accumulate a delay;
2) I see no reason to have separate timers, as they will all tick at the same time;

Anyway:
1) I would avoid running that many timers; it tells me something is wrong in your design; I would start by using one timer for everything, and add many handlers to it.
2) It seems to me you are polling something, rather than relying on events. What is it that you are testing in the tick handler?
3) why would you need a 100 msec interval? are you charging customers for connection time up to a fraction of a second???

Smile | :)

Luc Pattyn

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: Using too many timers in a program Pin
teknolog12324-Sep-09 1:56
teknolog12324-Sep-09 1:56 
GeneralRe: Using too many timers in a program Pin
Luc Pattyn24-Sep-09 2:17
sitebuilderLuc Pattyn24-Sep-09 2:17 
GeneralRe: Using too many timers in a program Pin
Tom Deketelaere24-Sep-09 2:45
professionalTom Deketelaere24-Sep-09 2:45 

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.