Click here to Skip to main content
16,004,974 members
Home / Discussions / C#
   

C#

 
AnswerRe: Small XML problem Pin
Guffa9-Jan-06 1:48
Guffa9-Jan-06 1:48 
AnswerRe: Small XML problem Pin
leppie5-Jan-06 11:37
leppie5-Jan-06 11:37 
QuestionConverting PDF to Text in C# Pin
curtKauf5-Jan-06 4:34
curtKauf5-Jan-06 4:34 
AnswerRe: Converting PDF to Text in C# Pin
Stanciu Vlad5-Jan-06 7:14
Stanciu Vlad5-Jan-06 7:14 
GeneralRe: Converting PDF to Text in C# Pin
curtKauf5-Jan-06 8:51
curtKauf5-Jan-06 8:51 
GeneralRe: Converting PDF to Text in C# Pin
Stanciu Vlad5-Jan-06 20:53
Stanciu Vlad5-Jan-06 20:53 
QuestionQueued Timers Pin
LiamD5-Jan-06 3:48
LiamD5-Jan-06 3:48 
AnswerRe: Queued Timers Pin
Guffa5-Jan-06 4:16
Guffa5-Jan-06 4:16 
You could start a separate thread to do the actual work of the timer, that way the thread that is waiting for the event is never busy. This if course only works if the code is thread safe, as you could have several threads running at the same time.

You can use a counter to see how many threads are running. Increase the counter when a task starts and decrease it when it finishes.

If the code can't be made fully thread safe, you could queue the events yourself to be able to keep track of them. Still using a separate thread to do the work (to keep the main thread response to the events), but don't start a new thread until the previous finishes.

---
b { font-weight: normal; }

GeneralRe: Queued Timers Pin
Dave Kreskowiak5-Jan-06 4:34
mveDave Kreskowiak5-Jan-06 4:34 
GeneralRe: Queued Timers Pin
LiamD5-Jan-06 21:57
LiamD5-Jan-06 21:57 
GeneralRe: Queued Timers Pin
Dave Kreskowiak6-Jan-06 2:54
mveDave Kreskowiak6-Jan-06 2:54 
GeneralRe: Queued Timers Pin
LiamD8-Jan-06 22:22
LiamD8-Jan-06 22:22 
GeneralRe: Queued Timers Pin
Dave Kreskowiak9-Jan-06 2:06
mveDave Kreskowiak9-Jan-06 2:06 
QuestionReflecting inherited interfaces Pin
Hans Ruck5-Jan-06 3:38
Hans Ruck5-Jan-06 3:38 
AnswerRe: Reflecting inherited interfaces Pin
leppie5-Jan-06 5:40
leppie5-Jan-06 5:40 
QuestionHelp Needed in C# Chess Game development Pin
usmanali1235-Jan-06 3:28
usmanali1235-Jan-06 3:28 
AnswerRe: Help Needed in C# Chess Game development Pin
Guffa5-Jan-06 3:33
Guffa5-Jan-06 3:33 
GeneralRe: Help Needed in C# Chess Game development Pin
usmanali1235-Jan-06 3:45
usmanali1235-Jan-06 3:45 
GeneralRe: Help Needed in C# Chess Game development Pin
Guffa5-Jan-06 4:19
Guffa5-Jan-06 4:19 
AnswerRe: Help Needed in C# Chess Game development Pin
albCode5-Jan-06 3:50
albCode5-Jan-06 3:50 
GeneralRe: Help Needed in C# Chess Game development Pin
usmanali1235-Jan-06 3:57
usmanali1235-Jan-06 3:57 
GeneralRe: Help Needed in C# Chess Game development Pin
albCode5-Jan-06 3:58
albCode5-Jan-06 3:58 
GeneralRe: Help Needed in C# Chess Game development Pin
usmanali1235-Jan-06 4:11
usmanali1235-Jan-06 4:11 
AnswerRe: Help Needed in C# Chess Game development Pin
J4amieC5-Jan-06 5:30
J4amieC5-Jan-06 5:30 
AnswerRe: Help Needed in C# Chess Game development Pin
microsoc5-Jan-06 23:01
microsoc5-Jan-06 23:01 

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.