Windows Service

bungpeng

Well-known member
Joined
Sep 10, 2002
Messages
906
Location
Malaysia
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?
 
Are you running it as a remoting service by any chance? Obviously, the object containing your timer isnt being instantiated.
 
Components (such as Timer) need a window handle to work correctly. Services, which generally do not have windows, obviously have no window handle available.
 
Back
Top