I'm working on a windows service that will communicate with a client
application(WinForm) via asynchronous sockets. The service starts fine
and is able to accept connections from the client application. The
problem that I'm having is that the call to Socket.BeginSend method in
my class doesn't return. The only way to get it to return is by
calling my class method (which essentially calls BeginSend) using a
delegate. The client application receives connect notifications, as
does the service etc., but it doesn't receive the data. Also, the
"Listen" method of my class is being called in the OnStart method in
the service.

The whole system works perfect if the service code is placed into a
window form. I'm guessing it may be some kind of threading issue? Any
ideas/thoughts? Thanks

Best regards,
T. Comer

Reply via email to