473,325 Members | 2,792 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,325 software developers and data experts.

hard technical questions: com automation, IE, killing applications

RJB
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
2 1253
Cor
Hi RJB,

If I read this I think that you have not used the AXwebbrowser but reusing
IE, if that is so, try to use the AXwebbrowser in your application, than you
know which it is. It is than also probably more easy to use more events as
by instance the error events from the axwebbrowser.

For a lot of otherthings I am also very curious how to do that. But when you
use the Axwebbrowser, you can do a lot to prevent that by using events as
errors and that.

I hope you get a lot of answers.

:-)

I hope this helps even as it is a little bit?

Cor
Nov 20 '05 #2
Cor,

Thanks for the response. You are in fact correct that I've
instantiated IE and am not using the AXwebbrowser control as it is not
appropriate for reasons largely outside the technology. I would be
concerned, at any case, that a hang within the control would be even
more difficult to deal with. Experimentation demonstrates with
certainty that on the order of a few 10s of hours the IE object
(regardless of where it is instantiated) will hand and will have to be
destroyed and restarted. A great sadness, but unfortunately, at least
in my experience, a truth that I must now deal with.
On Thu, 4 Mar 2004 20:19:51 +0100, "Cor" <no*@non.com> wrote:
Hi RJB,

If I read this I think that you have not used the AXwebbrowser but reusing
IE, if that is so, try to use the AXwebbrowser in your application, than you
know which it is. It is than also probably more easy to use more events as
by instance the error events from the axwebbrowser.

For a lot of otherthings I am also very curious how to do that. But when you
use the Axwebbrowser, you can do a lot to prevent that by using events as
errors and that.

I hope you get a lot of answers.

:-)

I hope this helps even as it is a little bit?

Cor


Nov 20 '05 #3

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

Similar topics

2
by: John E. Hadstate | last post by:
Please forgive the heavy cross-posting and feel free to delete inappropriate groups when you reply. I am really at a loss and hope someone has an answer for my problems. Environment: Redhat...
9
by: Hans-Joachim Widmaier | last post by:
Hi all. Handling files is an extremely frequent task in programming, so most programming languages have an abstraction of the basic files offered by the underlying operating system. This is...
4
by: jabailo | last post by:
I came across this article while researching a VB6 430 error: INFO: Considerations for Server-Side Automation of Office http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757 ...
15
by: qwweeeit | last post by:
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no...
1
by: Lee Seung Hoo | last post by:
hi~ :) I need all information of "Automation" or "Automation Object" what is that ? why is it useful ? How can I use that by C# or .Net Framework ?
0
by: net guest via DotNetMonster.com | last post by:
Hi, i am facing a lot of problems in killing the orphan excel instances. I approached one method like killing the Excel Orphan with processID. I am getting all the Processess that are running...
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...
4
by: Java Challenge | last post by:
I am trying to work hard to become a programmer and eventually get a job as a programmer, I have a low paying job at the moment as technical support and a family to maintain. 1 - I started to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.