windows service apllication

  • Thread starter Thread starter Sean
  • Start date Start date
S

Sean

Hello,

Initially I created a socket server (listener) application which blocks
and waits for communication from client socket applications running on
other Windows XP machines on the network. Everything seemed to be
working fine (where the listener simply displays a form whenever it
recieve's communication from a client) then blocks again. However on
logout/shutdown form machines running the listener, the listener seems
to hang and the user always have to click "end now" on a dialog box
that pops up. Without being sure of the source of the problem I decided
to try making the listener run as a service and went about creating a
windows service application which uses the system.timers.timer
component. The Tick method is then used to start the socket listener.
The service gets installed and starts without any apparent errors but
nothing happens when i use clients to communicate with the service. Am
I going about this correctly? Any advice is appreciated.

Sean.
 
If it's a service, you have to make it run under the local system account,
and check the "Allow service to interact with the desktop" option -
otherwise it's not allowed to display anything.


Arild
 
Thanks for the response. I have the service running under running under
Local system and "Allow service to interact with desktop" checked but
still can't get any communication going. Will keep looking

Sean.
 
Back
Top