On 09/14/2010 11:10 PM, Evan Burkitt wrote:
I have a Windows application that uses ASIO to implement a server that listens on a TCP port. When I run it from the console it starts and operates without error. When I start the same application as a Windows service (it's written to be run either way) my call to[...] I know I'm a bit sketchy with the details of my implementation, but I think this is at least as likely to be some Windows weirdness as an ASIO problem per se. I'm hoping someone else has encountered and fixed this problem before.
A similar thing I've seen (doesn't really relate to asio) is that Windows services don't get a console. Any writes to std::cout or std::cerr resulted in some sort of a crash (I don't recall the specifics). - Marsh