1、必须在Start事件中将Started设为True ,表示已经启动成功。 2、Execute只执行一次,所以必须自己写消息循环。 3、消息循环不能写在 Execute 事件中,否则无法停止服务,应该写在另一个线程中。