Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difficulty with browser control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01352564
Message ID:
01353011
Vues:
28
Haven't followed this entire thread, but some code in the FFC version was designed to address some problems that may be similar to (or exactly) what you're encountering. It's hard to remember. I looked at that years ago when first using the FFC version of the browser control, but haven't paid much attention to it since. The FFC version works well for me.

>Directly from the ActiveX control.
>
>>Just wondering . . . is this the web browser found in the FFC or did you subclass it directly from the ActiveX control?
>>
>>>Bo,
>>>
>>>Adding a _VFP.AutoYield = .T. before DOEVENTS seems to help, so perhaps in some cases it was going off? How would that occur?
>>>
>>>Thanks,
>>>
>>>Alex
>>>
>>>
>>>>Hi Alex,
>>>>
>>>>>The navigator is timing out, even when I increase time to 8 seconds, but only sometimes (often).
>>>>>
>>>>>What could be causing the problem? Maybe some properties are set wrong? I created the class some time ago and haven;t used it much.
>>>>
>>>>I have had bad luck with this type of loop waiting for the WebBrowser control:
>>>>
>>>>
>>>>>>>	DO WHILE toBrowser.ReadyState # lnReadyState AND lnX < lnMilliSeconds
>>>>>>>		DOEVENTS
>>>>>>>		lnX = lnX + 1
>>>>>>>		Sleep(1)
>>>>>>>	ENDDO
>>>>
>>>>
>>>>Even the DOEVENTS / Sleep combination do not seem to be enough to allow the control to do it's job. But stepping through the code does. That's what makes this fustrating to debug.
>>>>
>>>>I would try one of these 3 things:
>>>>
>>>>1) Change your DOEVENTS to DOVENTS FORCE
>>>>2) Make sure _VFP.AutoYield is set to .T.
>>>>3) Don't use a loop to wait for the browser to finish, instead hook into the NavigateComplete2 event. This is similar to a CallBack and is the preffered methodology for dealing with Asynchronous processes.
>>>>
>>>>I hope this helps,
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform