Article ID: 138398 - Last Review: March 14, 2005 - Revision: 1.2 PRB: RELEASE May Not Remove OLE Objects from MemoryThis article was previously published under Q138398 On This PageSYMPTOMS
After creating an OLE object using the CREATEOBEJCT() function, releasing
that object does not remove the OLE application session from memory.
RESOLUTION
For Visual FoxPro to remove certain OLE application session objects from
memory, the OLE application must be terminated. For example, after running
the following code, three instances of Microsoft Excel remain in memory:
STATUS
This behavior is by design.
MORE INFORMATION
The OLE Automation release method is program specific. In the previous
example, Microsoft Excel was used. Microsoft Excel version 7.0 is designed
to remain in memory after a OLE object is released. However, other programs
may behave differently. For example, Microsoft Word version 7.0 terminates
with just a RELEASE command.
For more information on how your program will handle an OLE Automation RELEASE command, please refer to that program's documentation or refer to the vendor of that program. Steps to Reproduce Behavior
| Article Translations
|
Back to the top
