Kbase P16920: MS Word process stays in memory after closing it.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/02/2006 |
|
Status: Verified
FACT(s) (Environment):
Windows
SYMPTOM(s):
MS Word process stays in memory after closing it.
Calling Microsoft Word from a Progress applciaiton using ACTIVEX Automation
After the RELEASE OBJECT statement.
WINWORD.EXE is still present in the Task Manager
CAUSE:
Before releasing the Word object, the QUIT method must be used otherwise the process will not be deleted from memory.
FIX:
The following code will correctly handle the closing of a Word control:
DEFINE VARIABLE wordAppl AS COM-HANDLE NO-UNDO.
CREATE "Word.Application" wordAppl .
/* Some Code */
wordappl:QUIT() . /* this statement release the process from the memory */
RELEASE OBJECT wordAppl.