取消
显示结果 
搜索替代 
您的意思是: 

Build access web on startup

My build or executable is trying to access the web... My virus scan notifies me of this on each new build. and I allow it through the firewall...Macafee Virus Scan

How do I build executables that don't access the web.
0 项奖励
1 条消息(共 12 条)
5,019 次查看

Hi richjoh,

There should be a setting in your firewall that will unblock LabVIEW.  If that option is not available, what are you trying to do in your program?

Regards,

James R.
National Instruments
0 项奖励
2 条消息(共 12 条)
4,996 次查看

Hi richjoh,

      Try opening the INI for the EXE (they always create an INI with the same name) and set server.tcp.enabled=False.

      It may be that VI server is enabled when you're building your EXE.  I think the EXE inherits the Options so when it starts-up, it wants to allow TCP connections.  Try disabling the TCP option before building the EXE and maybe the "server.tcp.enabled" will default to false.

Cheers!

 

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 项奖励
3 条消息(共 12 条)
4,987 次查看

Tbd,

I set all the network stuff in the ini file to False and the app still accesses web when I startup.

Still need ideas for this...

0 项奖励
4 条消息(共 12 条)
4,977 次查看

Hi richjoh,

      Have seen this several times at work while distributing a specific EXE (always on XP machines) and thought I understood it - am not so sure now, sorry! 难过表情

The dialog I've seen looks like the Windows Firewall, but it's the same idea you've described, also described here where it was a ZoneAlarm msg.  If VirusScan builds a log of "allowed" connections, it might show the address and port LabVIEW is trying to connect to - this could help diagnose the source of the problem.  Zonealarm and Norton Internet Security have such logs, will check a machine running VirusScan tomorrow.

Am on an XP (Prof.) machine now.  Compiled several apps under two different versions of LV, rebooted after changing firewall settings, and tried loggin-in as user with less priviledges - the firewall refuses to complain. 生气表情

BTW, what version of LabVIEW created the EXE?

Cheers.

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 项奖励
5 条消息(共 12 条)
4,965 次查看
Labview version 8.0...
0 项奖励
6 条消息(共 12 条)
4,954 次查看

I'm running into this problem NOW in 8.6 whereas it was NOT present before in a deployed build of the same code in 8.5.1, 8.5, 8.2, etc.

 

DNSLookupEnabled=FALSE

servertcp.enabled=FALSE 

 

are both included in the app.INI file (per other notes) but still my app tries to access the internet on startup IF the computer is already connected to the internet.  This is behavior I specifically do not want as I want any attempt at internet access to happen ONLY when a user manually selects to do so.

 

Any suggestions? 

0 项奖励
7 条消息(共 12 条)
4,711 次查看

Hi drval

 

What exactly are you trying to do in your program?  How are you detecting that the app is trying to access the internet on startup?

 

 

Regards,

 

Justin P

National Instruments

Justin Parker
National Instruments
Product Support Engineer
0 项奖励
8 条消息(共 12 条)
4,678 次查看

I'm using webbrowser2 in an ActiveX container in a sub-vi that programmatically calls to the internet.  As I understand it webbrowser2 remembers the last URL it SUCCESSFULLY accessed and then tried to access that when it instantiates -- whether or not it is called.  The code is based on the shipping example:

 

ActiveX Event Callback for IE.vi

 

Try embedding that as a callable sub-vi in a larger app and you should see the same behavior. 

0 项奖励
9 条消息(共 12 条)
4,658 次查看

drval,

 

I was able to replicate the behavior that you are seeing.  It does look like the webbrowser2 does attempt to access the internet, in 8.6, as soon as the vi is loaded.  This is new to 8.6.  If you can't have this happening, I would dynamically load the vi that is using the webbrowser2 at the time you need it.

 

Have a great day,

 

Justin P

Justin Parker
National Instruments
Product Support Engineer
0 项奖励
10 条消息(共 12 条)
4,606 次查看