Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-19-2020, 03:50 PM
AndrewEK AndrewEK is offline
Registered User
 
Join Date: Dec 2010
Posts: 36
CreateObject("InternetExplorer.Application") error

This line of Code:
Code:
Set g_objIE = CreateObject("InternetExplorer.Application")
is in a function that gets called multiple times to display data output
in an IE window, i.e. HTML formatted data.

The first time it is called, the IE window opens and displays the result.
Subsequent calls, however, only work when the previously displayed IE
window remains open for a relatively short duration, e.g. < 1 minute.
If one of the IE pop-up windows is left open for several minutes, the
next call to CreateObject() gives an error at the above line. So as long
as the user promptly closes each IE window displaying data results, it
works fine. As soon as they fail to promptly close an IE window, the
next call to CreateObject fails.

Any idea why? Is this a WIndows issue? All users are on Windows 10.

Last edited by cboyack; 06-19-2020 at 04:00 PM. Reason: Please surround any code with [CODE]...[/CODE] for proper visibility
Reply With Quote
  #2  
Old 06-19-2020, 04:10 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 1,016
This is not a SecureCRT issue. It is a Windows issue that you will need to resolve with your IT admin staff working in conjunction with your MS support representative(s).

SecureCRT cannot force the Internet.Explorer COM object interface to be available. SecureCRT is merely asking the VBScript engine to make the call, and then reporting to you the results of the call returned via the VBScript engine.

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
Reply

Tags
createobject


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:44 AM.