Contents
Program Package *
System Requirements *
Installation Instructions *
Tracing Options *
Opening COM Objects Tracing Options window *
Opening COM/DCOM API Tracing Options window *
Opening Display Options window *
Selecting COM Interface for tracing *
Selecting the COM /DCOM API functions for tracing *
How to select functions? *
Selecting process for tracing *
Selecting tracing presentation *
Closing Tracing Options window *
Overview *
File Operations *
New *
Saving trace to a file *
Opening trace from a file *
Edit Operations *
Toolbar and Windows *
Toolbar *
Windows *
What is OLESPY
Overview
When COM clients communicate to COM servers they make two types of COM-related calls:
The task of tracing COM-related calls the application is making becomes very important for:
Getting Started
Program Package
System Requirements
Installation Instructions
Insert the Installation Disk into a floppy drive.
Using Windows Explorer, Program Manager or File Manager start the SETUP.EXE program from your floppy drive (typically, A: or B:).
Follow the installation instructions in your screen.
Starting the Program
The start-up screen has one open empty sheet:

Tracing Options
OLESPY lets you trace interface methods and COM/DCOM API functions without having to make any modifications to the source code.
Tracing options are set in the following Tracing Options dialogs:
COM/DCOM API Functions window contains the list of functions from COM/DCOM library .
Display Options window contains the display options: Autotile, Separate sheet per thread and Log to file.
Notes:
From the Options menu, choose COM Objects , or use the ‘Magnet’ Toolbar button:
This will display ‘COM objects’ window.


Opening Display
Options window
From the Options menu, choose Display
Options , or use the ‘Display’ Toolbar
button:
This
will open ‘Display Options’ window.

Selecting
COM Interface for tracing
There are three interface tracing options :
To select all COM Interfaces for tracing click on radio button ‘All Calls’ in ‘COM Objects’ window.
How to include/exclude a subset of COM Interfaces
There are two ways to include/exclude COM interface methods for tracing:
Follow these steps:
Repeat these steps for all Interfaces you want to trace.
To trace IUnknown Interface methods
check or uncheck ‘QueryInterface’ ,’ AddRef’ and ‘Release’ check boxes.
Including/Excluding COM Interface methods through type libraries.
Follow these steps:
To unselect an interface or interface method from tracing highlight it in the right panel ‘Selected Methods’ and click on the 'Move to the left' button:
In order to select a COM/DCOM library function for tracing you have to move it from the ‘COM API Functions’ panel to the ‘Selected Functions’ panel.
Select a function or a group of functions (extended selection using Shift or
Control Keys) and click on the 'Move'
button:
‘Move All’ Method
Select all functions by clicking on
the 'Move All' button
to
move all functions from ‘Com API Functions’ box to ‘Selected
Functions’ box.
Unselecting functions
Unselecting functions is similar to selection, except that all transfers are from the right panel (‘Selected Functions’ box) to the left panel (‘COM API Functions’ box).
Example: To unselect all function(s) click
on button.
Selecting
process for tracing
In order to select an application for
tracing you have to launch it from OLESPY. To do so choose Launch Process
from the Options menu or use the 'Shuttle’ Toolbar button:
It will open a standard 'Open File' dialog where you can choose an application for tracing.
Note:
The application will be killed
after OLESPY is closed.
Selecting tracing presentation
To
select presentation attributes for trace information use the Options menu,
choose Display Options, or use the ‘Display’ Toolbar button:
This settings allow to specify sheets arrangement, separate sheet per thread and if and where the tracing information should be logged.
Note:
These settings affect only the visible presentation of the trace
Autotile
To arrange the sheets contained in an MDI frame. Tile the sheets that are not minimized so that they do not overlap and arrange icons of minimized sheets in a row at the bottom of the frame .
Separate sheet per thread
To display each thread’s activity in a separate sheet. During the tracing process new window(sheet) will be open automatically for each new thread .
If this option is unchecked call tree will not be build in the left tracing panel, only start and end of the function calls or interface methods will be displayed.
Gray color indicates the end of function
calls or interface methods.
Logging to File
To set up the ‘Log to’ display options window click on ‘Log to’ check box. It will allow you to type the name of the file and file format directly into the edit box or use the ‘Save as’ button to open the standard ‘Save as ’ dialog window.
Closing Tracing Options window
You can close all of the Options windows by clicking on the "OK" or "Cancel" buttons.
If "Cancel" button is clicked all changes made in Options window will be lost.
If "OK" button is clicked tracing selections will be stored in the registry and will be effective for the current and following sessions.
Multiple tracing sheets can be opened at the same time during the session of OLESPY. Each window(sheet) has two panels:
File Operations
Note:
Logged traces can also be opened.
New
To open New trace sheet window from File menu, choose New or use the ‘New’ Toolbar button:
Note:
Unless you uncheck separate sheet
per thread this command will not effect tracing display.
Saving trace to a file
Saving
trace to a file is functionally similar to logging to a file. The only
difference is that logging will do it one line at a time while saving takes
all data from the active sheet window.
It will open standard window Save as dialog where you can choose the directory and type the name of the file.
Note:
You can open saved or logged files
in any text editor.
Opening trace from a file
Any valid file saved from OLESPY application options such as ‘Logging to a file’, ‘Saving trace to a file ’ can be opened into a new tracing sheet window.
To open a previously saved file into a new sheet window from the File menu, choose Open or press Ctrl+ O keys or use or use the ‘Open’ Toolbar button:
It will open standard window dialog
where you can choose the directory and the file .
Note:
This new window opened from a file
becomes a valid trace window with all functions available in OLESPY .
To find text within active Tracing window you can use ‘Find ‘ dialog.
To activate it, choose ‘Find…’ from the Edit menu or use the Toolbar button:
It will display a ‘Find ’ window.
Note:
‘Find Next ’ button will be enabled after you start typing intot ‘Find what’ field.
OLESPY starts to search from the current item on the left panel (by default, it will search starting from the root item). Type the substring of the item you want to find and click ‘Find Next’. OLESPY will start searching, opening every function and interface and showing (highlighting) the first item that matches your criteria. OLESPY will indicate the detailed information about every match in the right panel. The next search result will be displayed when you press ‘Find Next’ again without changing the search text. To cancel the search, press ‘Cancel’ button in the ‘Find’ window.
If more then one sheet are open the search will be performed in the active sheet.
OLESPY has a toolbar which can be used for quick access to many features.
If no sheets are opened some buttons on the toolbar will be disabled.
You can show, hide and move toolbar.
How to show/ hide toolbar
On the View menu, click Toolbar to enable or disable it.
How to move toolbar
Click and hold down left mouse button on the border of the toolbar and drag it to its new position.
The toolbars buttons

The Tile command resizes and arranges the open group windows side by side. The Cascade command resizes and layers the open group windows so that each title bar is visible.
| | Home Page | Screen Shot | OLESPY| Download Demo| |