LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IWebBrowser2 delay opening VI

Hi Folks,
      In the past day a problem occurred while trying to open a VI - or the EXE created from it, and the problem seems to have been related to IWebBrowser2.  It was taking 5 to 10 minutes to open a VI if it had an ActiveX container that was associated with the IWebBrowser2 control, and the simple VI which was hosting the control "suddenly" wanted to be saved for the following reason "External Component Modified".
 
While opening the VI (or EXE) only the VI's rectangular window-border would be painted, the interior of the window would be transparent or white.
 
The problem seems to have been solved by right-clicking on the ActiveX container and re-selecting "Microsoft Web Browser"! Smiley Wink
 
Some other key-phrases for people searching this subject are "LabVIEW hangs", "VI Hangs on open", "LabVIEW freezes".
 
Cheers. 
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 1 of 5
(3,242 Views)

Hi tbd,

I might know what was crashing your computer.

The ActiveX component IWebBrowser2 is associated with the Internet Explorer 6. If the .exe is now running on a computer with Internet Explorer 7, you need to use the IWebBrowserApp library. This is why it is being resolved by reselecting the Microsoft Web Browser (from 6 to 7). You can try to run the old .exe on a computer with Internet Explorer 6.

Cheers,

KostasB

National Instruments Applications Engineering

0 Kudos
Message 2 of 5
(3,205 Views)

Hi KostasB,

I appreciate the reply.

     Your idea fits my suspicion that some automatic update was responsible - I'll check IE version next chance I get.

When you say "you need to use the IWebBrowserApp library" do you mean that there should be a new AX object to choose from?  I think the property-node still says "IWebBrowser2" chosen from "Microsoft Web Browser"...

Thanks again. 

Message Edited by tbd on 10-13-2007 02:04 AM

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 3 of 5
(3,190 Views)

Hi tbd,

that's exactly it. When you install IE 7 you can browse to find the AX object IWebBrowserApp and use it instead of the older IWebBrowser2. The rest of the programming

is identical.

Thank you,

 

KostasB

0 Kudos
Message 4 of 5
(3,175 Views)

Hi Kostas,

      It looks like both dev. stations are still IE6 - one station is W2K, the other WXP.  The "hanging" problem hasn't happened again, though I noticed the "External Component Modified" again.  Both stations are @ LV 8.2.1.  The hanging was very wierd, in that the VI finally did open - it just took a several minutes (before re-selecting AX object).

Will post again if problem recurs.

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 5 of 5
(3,161 Views)