bungpeng Posted February 11, 2004 Posted February 11, 2004 I was created a simple Windows Service Application with Timer and write current time to Event Log, but I found that when I start & stop the service, Event log can write successfully. But the Timer not working, It suppose to write the current Time to Event log every 10 seconds... Anyone help? Quote
Rodenberg Posted February 11, 2004 Posted February 11, 2004 Are you running it as a remoting service by any chance? Obviously, the object containing your timer isn't being instantiated. Quote
bungpeng Posted February 11, 2004 Author Posted February 11, 2004 remoting service? I don't think so. So how to instantiated it? Quote
bungpeng Posted February 11, 2004 Author Posted February 11, 2004 I was found my solution http://www.dotnet247.com/247reference/msgs/40/200332.aspx Quote
*Gurus* Derek Stone Posted February 11, 2004 *Gurus* Posted February 11, 2004 Components (such as Timer) need a window handle to work correctly. Services, which generally do not have windows, obviously have no window handle available. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.