Consultor Eletrônico



Kbase P26385: Webbrowser OCX gets error (5890) when calling it's REFRESH()
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/5/2003
Status: Unverified

SYMPTOM(s):

Webbrowser OCX gets error (5890) when calling it's REFRESH() method.

Error occurred while accessing component property/method: <property or method name>.

Error occurred while accessing component property/method: REFRESH.
Exception occurred.
Error code: 0x80020009 USER-INTERFACE-TRIGGER c:\dlc\wrk\p93219_webbrowse.ab (5890)

Error usually occurs after trying to NAVIGATE() to an invalid URL.

Error occasionally occurs after NAVIGATE() to a valid URL.

CAUSE:

There are two factors here, both related to Microsoft's OCX itself, not to Progress.

- The OCX stays in BUSY mode after attempting to navigate to an invalid URL.
- The OCX will always throw above error if REFRESH() is called while the OCX is in BUSY mode (such as when connecting to a relatively slow web site).

FIX:

To avoid receiving the error, check if the OCX is in busy mode before calling the REFRESH() method, ie:

IF chCtrlFrame:WebBrowser:Busy = NO THEN chCtrlFrame:WebBrowser:REFRESH().