Monitoring Out-of-proc COM Servers

Related Topics

An out-of-proc COM server is a COM object that is an executable (.exe) that runs in its own address space. Because it runs as a separate process, the code of the object can be shared and can be invoked by a process on the same machine as the client application or on a different machine.

1.    If the COM server is on a different machine than the client application, install PureCoverage on the server's machine.

2.    Register the COM server.

3.    Instrument the COM server executable from the command line by typing:

coverage /Run=no /Replace=yes <exename>.exe

4.    PureCoverage renames the COM server executable to <exename>.exe.bak and then names the instrumented server <exename>.exe.

5.    Start the client application outside of PureCoverage. When the client application invokes the COM server, it actually invokes the instrumented version, which starts PureCoverage.

Note:

§      If you are using Microsoft Windows 2000 or higher, the Windows File Protection feature (WFP) may prevent certain types of files from being replaced. For a workaround to this problem, click images\shortcut.gif.

(C) Copyright IBM Corporation 1993, 2010.