I have a program that starts Internet Explorer and navigates to a certain website to do some stuff. (never mind what)
All worked well in XP, Vista, 7 and 8.
It also works well in most Windows 10 implementations. But not all. I have 7 times Win10 installed on testmachines and end-user systems.
2 of these 7 have a problem with automation of IE and I have no clue how to solve this and I don't know what is the important difference between the working and the troublesome computers.
Here is a piece of example code in VFP and VBS. Both have problems on these 2 computers:
or in VBS
When the created object ieo is referenced to it produces error 0x80010108
The object invoked has disconnected from its clients
ieo seem to have vanished. hence the error.
The machines have IE version 11.0.10240.16431 (11.0.22) and I have 32/64 bit Computers. Just as I said most computers work well but one 32-bit and one 64-bit give the error above.
Can anyone reproduce the error on Windows 10? Has anyone a suggestion. I tried with and without Antivirus and the properties of IE are all the same as far as I can see. An implementation that works I can't get broke and an implementation that's broke I can't get to work.....
Technical Preview Win 10 with IE 11.0.10159 RTM also produces this error.
All worked well in XP, Vista, 7 and 8.
It also works well in most Windows 10 implementations. But not all. I have 7 times Win10 installed on testmachines and end-user systems.
2 of these 7 have a problem with automation of IE and I have no clue how to solve this and I don't know what is the important difference between the working and the troublesome computers.
Here is a piece of example code in VFP and VBS. Both have problems on these 2 computers:
Code:
myurl="[URL unfurl="true"]http://www.anysite.com/"[/URL] && pick your own site
ieo=createobject("InternetExplorer.Application")
ieo.navigate(myurl)
do while ieo.readystate<>4
enddo && sometimes here an error 0x80010108
windhand=ieo.hwnd && sometimes here an error 0x80010108
or in VBS
Code:
Set ieo = CreateObject("InternetExplorer.Application")
ieo.navigate "[URL unfurl="true"]http://www.anysite.com/"[/URL]
ieo.Visible = True '< error line
Set objShell = CreateObject("WScript.Shell")
objShell.AppActivate ieo '< or here
do while ieo.readystate<>4 '< or here
loop
When the created object ieo is referenced to it produces error 0x80010108
The object invoked has disconnected from its clients
ieo seem to have vanished. hence the error.
The machines have IE version 11.0.10240.16431 (11.0.22) and I have 32/64 bit Computers. Just as I said most computers work well but one 32-bit and one 64-bit give the error above.
Can anyone reproduce the error on Windows 10? Has anyone a suggestion. I tried with and without Antivirus and the properties of IE are all the same as far as I can see. An implementation that works I can't get broke and an implementation that's broke I can't get to work.....
Technical Preview Win 10 with IE 11.0.10159 RTM also produces this error.