Consultor Eletrônico



Kbase P171521: Calling enable-events on Internet Explorer COM object returns NO, but events are still handled
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/23/2010
Status: Unverified

SYMPTOM(s):

Calling enable-events on Internet Explorer COM object returns NO, but events are still handled

Event procedures are run as expected when COM object raises an event.

When using OpenEdge 10.2B, an additional error message occurs:

Unexpected error occurred while processing method/statement ENABLE-EVENTS.
Element not found.
<Program name> (5889)

FACT(s) (Environment):

Behavior confirmed with Internet Explorer 8
OpenEdge 10.2x
Windows

CAUSE:

Bug# OE00199615

CAUSE:

The Internet Explorer COM object supports 3 event interfaces.
OpenEdge attempts to set up event sinks for all of these, and one that is only used at design time fails. The fact that the other interfaces registered correctly and will be fully functional is ignored at this point.

FIX:

Upgrade to OpenEdge 10.2B03

Workaround:

Simply ignore the return value of ENABLE-EVENTS() if it's confirmed that events are handled correctly anyway.

For 10.2B, the error that occurs can be suppressed by specifying the NO-ERROR option on the ENABLE-EVENTS() call, or by trapping it in a CATCH block and not taking further action.