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.DocumentComp lete. 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.Explor er. 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 3 1272
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 SIGTERM signals to the process,
as a result of seeing that it had not died.
I don't think this is relevant, but the application has fork()ed a child
process (cdparanoia). The only thing I can think of is that somehow, there
is an exception...
|
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 example:
os.system("someapplication.exe")
and kill it, if it waits longer than let's say 100 seconds
|
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 number) linking (and sometimes
compiling) becomes immensely slow, and task manager shows that link.exe (or
cl.exe) is barely using any processor time, but an awful lot of RAM (around
150-200MB). I'm going to keep an eye on page faults since I can't...
|
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 the Instance of Word hat is
opened?
I have tried
oDocument.Application.Close & oDocument.Application = Nothing
Where might I find some documentation on automation in the Webbrowser?
|
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 until I learned ASP/VBS (if
that can be called writing software) as my focus was and remains for the
most part developing for the web. Even though I have had a programming class
in C which I somehow passed, JavaScript always gave me the heeby...
| |
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 that I can automate the killing
process when blocking and deadlock time is exceeded in certain time
elipsade? Can somebody help me on this please?
Regards
|
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 quickly becoming more and more urgent.
I've tried the code below using the server's local Administrator user name
and password. This gets me past the Access denied error but gives me a User
|
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 identify a session using V$SESSION and kill it (using ALTER SYSTEM KILL SESSION ‘SID’). By killing a session, kills all the processes ? Or am I getting this all wrong. Kindly explain of forward me to a good link. I tried to Google, but it tells only...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |