Consultor Eletrônico



Kbase P132166: Input file to COM object not released until end of OpenEdge session
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/06/2008
Status: Unverified

FACT(s) (Environment):

Windows
OpenEdge 10.1B

SYMPTOM(s):

Input file to COM object not released until end of OpenEdge session

File passed to method CreateMHTMLBody in CDO Message object is locked until OpenEdge session ends

RELEASE OBJECT statement has no effect.

Input file is specified in the form "c:\temp\foo5.html"

When input file is specified in the form "file:///c:/temp/foo5.html", the file is released immediately.

CAUSE:

Microsoft documentation states that the first parameter to CreateMHTMLBody should be an URL. RELEASE OBJECT releases the COM object itself; it does not release any other resources the COM object uses if the COM object does not release them itself. In this case the object does not appear to be doing so because the resource was specified improperly.

FIX:

Call COM method according to its documentation.