473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

repost: help with IE automation management and killing processes

I'm working on a VB application that must run 24x7 for a LONG time,
think 60 days of so. As part of what it does it must automate an
instance of IE and navigate to many different URLs, think many
thousands.

Issue 1: Most of the time, these navigations succeed. All is well.
But, based on early runs, from time to time, say once or twice every
24 hrs IE inexplicably hangs and the automation object hangs, gets
stuck, becomes nonresponsive, etc. for whatever reason. I'm not sure
why, and ultimately don't even need to know/care, but it does happen.
The application has a thread that detects this event reliably. The
question is, how can I kill the instance of IE that has become
unresponsive? I need an approach that kills, no matter what. BTW,
experience indicates that leaving hung copies of IE laying about
eventually leads to vary bad behavior by other copies of IE.

Issue 2: Some of the sites, some of the time, create a popup window.
I can detect this occurrence by catching IE.NewWindow. Testing
indicates that when there are a few popup windows displayed the main
IE window is happy to continue to work. However, when there are many,
say 10s or 100s, IE becomes very distressed, performance becomes
variable, hangs occur, etc. How can I kill these popup windows after I
catch them in NewWindow?

Issue 3: Re Issue 2. From time to time, I will need to do something
with the popup window, as in, for example, save it. When NewWindow
fires, experimentation indicates that the window is NOT complete in
that the document object is not referencable. I know how to determine
that a url is in fact fully displayed using IE.DocumentComplete. I'm
not clear on how to attach events to the popup, wait for the popup to
become complete, trigger a SAVEAS, and then kill the popup window.
Any clues?

Issue 4: I'd like to be able to do other things while this application
is running, including using IE. I know how to get a list of all the
IEs that are currently running on the system. I know the one my
application started with New Internet.Explorer. How can I tell mine
from the rest? What about when my application's IE caused some
popups? How can I know that they are a consequence of my
application's IE?

Thanks for any help.
Richard
Nov 20 '05 #1
3 1254
Cor
Hi Richard,

You did not answer my exmanination anymore in the privious thread.

There we saw that it seems that with axwebbrowser all events are working
allmost as you and me suspect (axshdoc) and with IE (shdoc) only a few.

I did not know that before, but I advice you again to have a look at the
axwebbrowser.

Cor
Nov 20 '05 #2
Cor,

As I mentioned in my previous posting, that is not an available option
for this application. Additionally, in that both IE and the control
are based on the same underlying object, it makes little difference in
either case. Finally, by using the control, I would face trying to
kill the control when it hange (it does) or the application. Both
issues are rather more problematic than simpling killing an external
process.

Richard
On Sun, 7 Mar 2004 09:05:55 +0100, "Cor" <no*@non.com> wrote:
Hi Richard,

You did not answer my exmanination anymore in the privious thread.

There we saw that it seems that with axwebbrowser all events are working
allmost as you and me suspect (axshdoc) and with IE (shdoc) only a few.

I did not know that before, but I advice you again to have a look at the
axwebbrowser.

Cor


Nov 20 '05 #3
Cor
Hi Richard,
Additionally, in that both IE and the control
are based on the same underlying object, it makes little difference in
either case. Finally, by using the control, I would face trying to
kill the control when it hange (it does) or the application. Both
issues are rather more problematic than simpling killing an external
process.


Look to that thread where you have made that sample, because what you write
was what I also a long time was thinking. But they are totally different.
(complete different event signature, I never used it with IE, as you
probably not did with the axwebbrowser).

Cor
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andrew Athan | last post by:
I have a python program (snippet below) which does not want to seem to die when I issue a sys.exit() inside the SIGTERM handler. The output below is generated as the result of sending several...
10
by: Jacek Popławski | last post by:
Hello. I am going to write python script which will read python command from socket, run it and return some values back to socket. My problem is, that I need some timeout. I need to say for...
14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
6
by: Paul Bromley | last post by:
I am trying to automate Microsoft Word in the Webbrowser and have used the sample at http://support.microsoft.com/default.aspx?scid=kb;EN-US;243058 can some kind soul tell me the syntax to close...
39
by: clintonG | last post by:
This is not about starting a fight but an observation that seems to be proving itself on its own merit and is therefore simply a point of conjecture. I did not get serious about writing software...
6
by: laststubborn | last post by:
Hi everybody, We have a very large database and high transaction volume. Time to time these transactions are locking each other and decrease the performance of the database. Is there any way...
1
by: lecnac | last post by:
Sorry for the repost. I must have done something wrong when I tried to post my reply (I can't seem to find it). Anyway, I'd really appreciate any help that anyone could provide. My issue is...
3
by: eeriehunk | last post by:
Hi All, I am a little confused between a session and a process. I learnt that an Oracle Session is created for every login. And we can run many processes in one session. I have also learnt how to...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.