|
Boost Users : |
Subject: Re: [Boost-users] [asio] Error running as Windows service; runs fine from console
From: Marsh Ray (marsh_at_[hidden])
Date: 2010-10-26 15:43:58
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net