Board index » delphi » Shutting Down a COM Server Remotely

Shutting Down a COM Server Remotely

I have a COM server which implements a IServerMonitor interface that
includes a ShutDownServer method.  How can I shut down the COM server
regardless of connected clients?  In other words can I bypass the "There are
still active COM objects in this application.  ..." dialog when attempting
to close the server?

Thanks

Will

 

Re:Shutting Down a COM Server Remotely


Will,

Quote
Will Smith wrote in message <7i3tpm$jb...@forums.borland.com> ...
>I have a COM server which implements a IServerMonitor interface that
>includes a ShutDownServer method.  How can I shut down the COM server
>regardless of connected clients?  In other words can I bypass the "There
are
>still active COM objects in this application.  ..." dialog when attempting
>to close the server?

This dialog is shown by AutomationTerminateProc that is located comserv
unit. So you will have to modify this unit or inherit TComServer class so it
returns zero ObjectCount when necessary to cheat this function.

Alexey Dynnikov <al...@chat.ru>
http://members.tripod.com/~aldyn
http://al.irt.ustu.ru/~aldyn/
http://www.chat.ru/~aldyn/
SvCom - The Joy of Services

Other Threads