Estou tendo um problema usando o activex shell.explorer.
Uso ele para abrir uma pagina web em uma window ou dialog.
Acontece que, de forma intermitente, ocorre erro gpf ao abrir a pagina.
Alguem tem idéia do que pode estar ocorrendo?
Exemplo do código:
Code: Select all | Expand
Function WebExe(cLink)Local oDlgLocal oActiveXDEFINE WINDOW oDlg TITLE "Help Online" oActiveX := TActiveX():New( oDlg, "Shell.Explorer") oDlg:oClient = oActiveX oActiveX:bOnEvent = { | event, aParams, pParams | EventInfo( event, aParams, pParams, oActiveX ,"LINK DE ERRO") } ACTIVATE WINDOW oDlg MAXIMIZED On Init (Navega(oActiveX,cLink))ReturnStatic Function Navega(oActiveX,cLink)oActiveX:Do('Navigate2',cLink)while oActiveX:Document == nil SysRefresh()endReturn .t.Static function EventInfo( event, aParams, pParams, oActiveX , cLinkPad ) If cValToChar( event )=="NavigateError" .and. (lWebError==Nil .or. !lWebError) lWebError := .t. oActiveX:Navigate(cLinkPad) EndIFreturn
Erro:
