MSched 14.0.14
Code line: IECreate>IE[0]
Message:
A system shutdown has already been scheduled, ProgID: "InternetExplorer.Application"
Issue:
I am occasionally encountering this message. I have tried multiple things to resolve.
I have CloseWindow calls, various Wait> attempts both before IECreate and after IEQuit.
I have disabled IE addons, such as Java etc, etc.
I have added Let>ONERROR=myErrorHandler - the code does not fire.
When this happens, MSched hangs up.
Even if you reply to this message manually, MSched remains hung up.
Automation stops until manual intervention - Shift-Esc to abort the process.
No, it is not the system shutting down.
MScheds own message tells you it is a previous IE shutdown not yet completed or similar.
I really need a professional way to trap this error and respond to it appropriately. I am prepared to use other tools than MSched if it cannot handle this.
Can anyone help ?
Problem with IECreate
Moderators: Dorian (MJT support), JRL
-
- Junior Coder
- Posts: 49
- Joined: Fri Oct 15, 2004 8:42 am
- Location: Johannesburg, South Africa
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
If we can reproduce it we can trap it and suppress it, but as I'm presuming it would stop the IE automation from working, you'd need to detect it and handle it, so we also need to return a local error.
In lieue of being able to reproduce it we can try and add extra generic exception handlers around IECreate. We'll see what we can do.
In the mean time, if, as you say, the issue is that a copy of IE is still shutting down, would it be worth checking if an iexplore.exe process is running and Wait if not? So you could do this before IECreate ...
WaitProcessTerminated>iexplore.exe
Although if you have other IE windows open that may not help you.
In lieue of being able to reproduce it we can try and add extra generic exception handlers around IECreate. We'll see what we can do.
In the mean time, if, as you say, the issue is that a copy of IE is still shutting down, would it be worth checking if an iexplore.exe process is running and Wait if not? So you could do this before IECreate ...
WaitProcessTerminated>iexplore.exe
Although if you have other IE windows open that may not help you.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?