Link to home
Start Free TrialLog in
Avatar of rdare23
rdare23

asked on

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.
Avatar of wantabe2
wantabe2
Flag of United States of America image

try making the user a local admin in the user account settings
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
Avatar of sam0x01
sam0x01

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.
Avatar of rdare23

ASKER

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.
Avatar of rdare23

ASKER

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.
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
ASKER CERTIFIED SOLUTION
Avatar of rdare23
rdare23

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rdare23

ASKER

this fixed the issue but not the solution i wanted.