Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
AnswerRe: Inaccessible due to its protection level Pin
DaveyM6912-Feb-10 22:56
professionalDaveyM6912-Feb-10 22:56 
AnswerRe: Inaccessible due to its protection level Pin
Luc Pattyn13-Feb-10 1:26
sitebuilderLuc Pattyn13-Feb-10 1:26 
QuestionCall a .aspx web-form from Microsoft CRM 4 Pin
quercus12-Feb-10 12:56
quercus12-Feb-10 12:56 
QuestionTTF file format Pin
sduhd12-Feb-10 12:13
sduhd12-Feb-10 12:13 
AnswerRe: TTF file format Pin
harold aptroot12-Feb-10 12:52
harold aptroot12-Feb-10 12:52 
QuestionWindows service & Timers Pin
koleraba12-Feb-10 10:06
koleraba12-Feb-10 10:06 
AnswerRe: Windows service & Timers Pin
PIEBALDconsult12-Feb-10 10:38
mvePIEBALDconsult12-Feb-10 10:38 
GeneralRe: Windows service & Timers Pin
koleraba12-Feb-10 11:01
koleraba12-Feb-10 11:01 
The problem I am having is that the thread that created the timer and started it, is no longer available when the timer's interval elapses. When I created an instance of the CustomTimer - which is just a wrapper around System.Threading.Timer - I save the Dispatcher.CurrentDispatcher in the private field of the CustomTimer. Than I start the timer end wait for its event to get raised(still inside the CustomTimer) and then use the saved Dispatcher to marshal to the thread that created the timer. But in some casses the Thread property of the stored Dispatcher has the state of stoped or WaitSleepJoin. But I am not sure what is the reason for that - maybe one should not use dispatcher in the windows service? I can put the code here if I was not clear.

Thanks for your time,
Uros
GeneralRe: Windows service & Timers Pin
PIEBALDconsult12-Feb-10 14:09
mvePIEBALDconsult12-Feb-10 14:09 
GeneralRe: Windows service & Timers Pin
koleraba12-Feb-10 22:36
koleraba12-Feb-10 22:36 
GeneralRe: Windows service & Timers Pin
PIEBALDconsult13-Feb-10 3:20
mvePIEBALDconsult13-Feb-10 3:20 
AnswerRe: Windows service & Timers Pin
DaveyM6912-Feb-10 10:47
professionalDaveyM6912-Feb-10 10:47 
GeneralRe: Windows service & Timers Pin
koleraba12-Feb-10 11:04
koleraba12-Feb-10 11:04 
QuestionRe: Windows service & Timers Pin
koleraba12-Feb-10 12:39
koleraba12-Feb-10 12:39 
AnswerRe: Windows service & Timers Pin
22491714-Feb-10 17:33
22491714-Feb-10 17:33 
GeneralRe: Windows service & Timers Pin
koleraba14-Feb-10 23:50
koleraba14-Feb-10 23:50 
QuestionA few pointers toward design Pin
Saksida Bojan12-Feb-10 9:00
Saksida Bojan12-Feb-10 9:00 
AnswerRe: A few pointers toward design Pin
Dan Mos12-Feb-10 9:13
Dan Mos12-Feb-10 9:13 
GeneralRe: A few pointers toward design Pin
Rozis12-Feb-10 11:45
Rozis12-Feb-10 11:45 
AnswerRe: A few pointers toward design Pin
DaveyM6912-Feb-10 13:18
professionalDaveyM6912-Feb-10 13:18 
GeneralRe: A few pointers toward design [modified] Pin
Saksida Bojan12-Feb-10 18:54
Saksida Bojan12-Feb-10 18:54 
GeneralRe: A few pointers toward design Pin
DaveyM6912-Feb-10 23:42
professionalDaveyM6912-Feb-10 23:42 
GeneralRe: A few pointers toward design Pin
Saksida Bojan13-Feb-10 0:10
Saksida Bojan13-Feb-10 0:10 
GeneralRe: A few pointers toward design Pin
DaveyM6912-Feb-10 23:55
professionalDaveyM6912-Feb-10 23:55 
Questionbaseclass and a interface. Pin
Jarno Burger12-Feb-10 8:42
Jarno Burger12-Feb-10 8:42 

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.