我正在尝试将一些在Linux中作为控制台应用程序运行的演示代码转到守护进程中。所以我找到了这个例子:// ~~~~~~~~~~// Copyright (c) 2003-2011 Christopher M. Kohlhoff (chris at kohlhoff dot com)// Distributed under the Boost Software License, Version 1.0. (
以下代码在连接器boost::asio::connect(s, iterator);处崩溃,并显示输出:This application has requested the Runtime to terminate it in an unusual way.Press any key to continue.