Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

Program keeps crashing

I have a program that keeps crashing on the Windows 7 computer.  It works fine on XP.  The error message is a runtime 40006, which is network issue, but when I run ping test to the server the program communicates with, there are no dropped packets.  I have changed compatiblity to xp sp3 and to run as an admin.  I have turned off the firewall and uac.  the only thing fix that works is turning off the read-only on the System32 folder, but as soon as the user shutdowns the computer the settings get reset and the 40006 come back.  I have tried loading the dlls and ocxs from another folder but that does not help.  Any suggestions would be greatful.
0
rdare23
Asked:
rdare23
1 Solution
 
wantabe2Commented:
try making the user a local admin in the user account settings
0
 
Kody-BurgCommented:
If this is a network based program, have you opened the appropriate ports in the Windows Firewall? If not, try that. You might also want to try running the program with the firewall turned off. I researched your error on google, and found that some users resolved that issue by turning Windows Firewall off.

Please post back if this doesn't work. The name of the program would also be helpful.

Regards,

Kody
0
 
sam0x01Commented:
Eith the application is either
creating a flie in the System32 folder  (will need local admin access) or
creating a file in a subfolder of the System32 folder (will need the subfolders permissions changed)
it is writing to an existing file in the System32 folder or subfolder (will need to change the permissions of the file)

See if you can run it in a compatibility mode prior to Windows Xp (Windows 98 would work).

Another approach would be to write a script to launch the program as an administrator user using runas.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
rdare23Author Commented:
The users are set to local admins, but the issue continues.
The firewall has been disabled, and the issue continues.

Will try a lower compatibility mode than xp, and have already told the program to run as an admin.
0
 
rdare23Author Commented:
Why would the runtime 40006 error only show up in Windows 7, we have windows xp computer run the program without the error?  Is there a service that windows 7 uses that xp does that would cause network issues.
0
 
sam0x01Commented:
Found Fixing Runtime error: '40006'

If the VB6 runtime files are not installed and it is a VB6 application, it could be causing the error.

They can be downloaded from http://download.microsoft.com/download/vb60pro/Redist/sp5/WIN98Me/EN-US/vbrun60sp5.exe

Regards,

Shane
0
 
rdare23Author Commented:
had to reinstall win7
0
 
rdare23Author Commented:
this fixed the issue but not the solution i wanted.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now