0

我使用 cBuilder 构建了一个程序,带有一个 oleAuto 接口,允许一些客户端对服务器 com 进行一些简单的查询。当由于某种原因(例如数据库连接丢失)出现问题并且我需要重新启动服务器时,我想关闭服务器。

问题是,如果有一些客户端通过 COM 引用连接,我会收到一个对话框,提示我确认是否要关闭此应用程序。

有没有办法避免对话并强制关闭服务器?

4

1 回答 1

0

Well obviously you need to release all references to the object in order to properly close the server.

Were you unaware of that, or is there a reason why you need to hold on to the reference?

于 2012-09-19T10:11:18.813 回答