Ray Proudfoot

Windows 10 experts - why won’t a Visual Basic program run?

Recommended Posts

I’m hoping there are some Windows 10 experts here who can help solve a mystery. Radar Contact v4 - previously payware - is now freeware and is available via a link on that forum here in AvSim.

Many have successfully installed it but one user cannot get it to run despite many suggestions. Out of interest I installed it on my own Win 10 computer and it was fine.

But on the other chap’s computer it opens briefly and then closes. The splash screen is not seen so something is either terminating it or it is closing on its own as something is missing. But if something is missing why aren’t all users affected?

He has tried launching it in Safe Mode, with UAC turned off, with A/V disabled but still it won’t run. He has downloaded the file a second time but still no joy.

It requires VB run-time files but not until a flight plan is selected. It should just open to the main interface but doesn’t. There is nothing shown in Event Viewer either. It’s a total mystery.

Are there any utilities that can monitor what happens when it is launched that might give a clue why it fails to run?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

2 hours ago, Ray Proudfoot said:

I’m hoping there are some Windows 10 experts here who can help solve a mystery. Radar Contact v4 - previously payware - is now freeware and is available via a link on that forum here in AvSim.

Many have successfully installed it but one user cannot get it to run despite many suggestions. Out of interest I installed it on my own Win 10 computer and it was fine.

But on the other chap’s computer it opens briefly and then closes. The splash screen is not seen so something is either terminating it or it is closing on its own as something is missing. But if something is missing why aren’t all users affected?

He has tried launching it in Safe Mode, with UAC turned off, with A/V disabled but still it won’t run. He has downloaded the file a second time but still no joy.

It requires VB run-time files but not until a flight plan is selected. It should just open to the main interface but doesn’t. There is nothing shown in Event Viewer either. It’s a total mystery.

Are there any utilities that can monitor what happens when it is launched that might give a clue why it fails to run?

If the program was built in VB, it would likely require the VB runtimes be installed even to open the user interface. The installed runtimes must match the version of VB that was used to create the software. There are four possible versions, but all are readily available, and it should be possible to install all four. It is kind of like the requirement to have the proper version of the MSVC libraries for programs written in C or C++, where multiple versions can coexist with no problem.

Many VB programs also make use of OCX objects which also need to be properly registered on the system.

This site below has more information, plus download links for the various VBRUN libraries.

https://www.karenware.com/powertools/runtimes

Share this post


Link to post
Share on other sites

Thanks Jim. I'm curious as to whether I have VB run-time files already installed on a professionally-built PC. How do I check as RC4 ran fine from the installer with no further intervention from me.

The chap on the RC forum thread was also able to get RC4 to run on another Win 10 PC but not his own. He couldn't see any obvious differences.

Share this post


Link to post
Share on other sites

I forget where the runtime files reside. It might be in the /System32 folder. Quite possible that the builder of your PC included them as part of your build, since a lot of software over the years was created in Visual Basic.

I believe the installer for RC should have installed the proper runtimes, but that process may not have completed properly on a new Win 10 system, depending on the computer’s security settings or folder permissions.

My advice would be for the user having the issue to download and run the stand-alone Microsoft installers for all 4 VB runtime versions that exist. They can all be installed simultaneously with no problem, and will not interfere with any other software on the computer. It would at least eliminate the possible lack of the correct runtime as the cause of the problem - though the issue might be caused by something else.

  • Like 1

Share this post


Link to post
Share on other sites

Thank you Jim, that's really helpful. I'll direct him to your posts. :smile:

Share this post


Link to post
Share on other sites
1 hour ago, JRBarrett said:

I forget where the runtime files reside. It might be in the /System32 folder. Quite possible that the builder of your PC included them as part of your build, since a lot of software over the years was created in Visual Basic.

I believe the installer for RC should have installed the proper runtimes, but that process may not have completed properly on a new Win 10 system, depending on the computer’s security settings or folder permissions.

My advice would be for the user having the issue to download and run the stand-alone Microsoft installers for all 4 VB runtime versions that exist. They can all be installed simultaneously with no problem, and will not interfere with any other software on the computer. It would at least eliminate the possible lack of the correct runtime as the cause of the problem - though the issue might be caused by something else.

Hello. I'm the chap with the issue. Thanks for helping out.

I was able to install the VB5 runtime, but it didn't allow me to run the exe. For good measure, I installed the VB6 on that link too, but it didn't help.

I cannot install the 3 and 4, Windows tells me that it won't run on Windows 10. (A cursory internet search suggests that it is 16 bit applications that can't run on a 64bit OS, not sure how true that is).

Share this post


Link to post
Share on other sites

Edit: So, I also ran the exe through Windbg to try and find my error. It appears to be excepting in a function call in msvbvm60.dll -> Through kernel32.dll. (Float Inexact Result) 

So I believe that is one of the VB6 dlls. But I have installed, and reinstalled that so many times. 

 

Share this post


Link to post
Share on other sites

@SkyyStorm, which folder does msvbvm60.dll  reside in? Have you tried SysWow64 as well as System32? And it would then need registering of course.

Share this post


Link to post
Share on other sites
Posted (edited)

Try this...Remove the software that you were trying to install to begin with, then rerun the VBA Runtime installation. After  running the installation, search and make sure that MSVBVM60.DLL is installed. If not, I believe you can download it from Microsoft website in the tech support downloads area. Then, go back and re-install the original application.

If that does not work, you may need to find yourself a registry cleaner, clean up the Registry, and try again. MSVBM60.dll is often flagged when you have a corrupted registry file.

 

Edited by GACSavannah

Share this post


Link to post
Share on other sites
9 hours ago, GACSavannah said:

Try this...Remove the software that you were trying to install to begin with, then rerun the VBA Runtime installation. After  running the installation, search and make sure that MSVBVM60.DLL is installed. If not, I believe you can download it from Microsoft website in the tech support downloads area. Then, go back and re-install the original application.

If that does not work, you may need to find yourself a registry cleaner, clean up the Registry, and try again. MSVBM60.dll is often flagged when you have a corrupted registry file.

 

Okay, I'll try. Can you recommend a safe registry cleaner?

Share this post


Link to post
Share on other sites
9 minutes ago, pasterke said:

Okay, thank you, will try that tonight.

12 hours ago, SkyyStorm said:

Edit: So, I also ran the exe through Windbg to try and find my error. It appears to be excepting in a function call in msvbvm60.dll -> Through kernel32.dll. (Float Inexact Result) 

So I believe that is one of the VB6 dlls. But I have installed, and reinstalled that so many times. 

 

Just a note, I debugged the exe on my work computer (where it runs fine), and got the same error as I got on the home computer, so the error is caused by the debugger itself, and is not the error causing the termination of the application on my home computer. So please ignore that in the analysis, it is a faulty conclusion.

Share this post


Link to post
Share on other sites

@SkyyStorm, out of interest after you bootup your PC have a look in Event Viewer. How many Warnings or Errors are listed? Anything that might suggest a problem with the OS?

Might it be worth running a repair of 10?

Share this post


Link to post
Share on other sites

Not really anything of note. I suppose I can try a repair, but I'm scared of breaking my windows. =P

Share this post


Link to post
Share on other sites
26 minutes ago, SkyyStorm said:

Not really anything of note. I suppose I can try a repair, but I'm scared of breaking my windows. =P

We appeared to have exhausted all other options. Would a repair be that risky? You could argue it's already broken. I have run repair myself and although it didn't fix my problem it may fix yours. I think it uses fairly conservative settings.

Share this post


Link to post
Share on other sites

I will try running a repair. I've also cleaned my registry, and I'm quickly reinstalling RC to see if maybe something was fixed because of that. But if that fails, I'll run a repair tonight.

Share this post


Link to post
Share on other sites
Posted (edited)

I would personally go back a few steps. check the zips (I believe) are not corrupt or the wrong sizes. I don't know if there's MD5 checksums available for each zip.
compare OS version with someone with a working copy. (home vs. pro)
disable anti-virus, anti-malware, etc.
make sure you're logged in with admin rights.
unzip to a new folder using win10 built in and not another utility.
run (each) installer using 'run as admin', (or follow the instructions bearing that in mind).

I don't know the specific instructions for installation. I seem to remember it being made available in a series of zip files and some people mentioned download problems when it was first made freely available. I doubt you need the run times for VB, esp. if no one else has used them. VB projects I wrote in VB6 included all the requisite binaries as part of creating the installation.

Edited by jpf

Share this post


Link to post
Share on other sites

@jpf, there's a single zip for RC4. I've downloaded and installed it myself so it's not corrupt. This is a fresh upload from the original.

There's a process stopping it from running on some PCs but Win 10 version number doesn't appear to be critical.

Share this post


Link to post
Share on other sites
Posted (edited)
5 hours ago, Ray Proudfoot said:

there's a single zip for RC4.

there were 12 zips when I downloaded it consisting of 1 for program, 1 for key maker and 10 voice packs. that was very early on in it being made freely available.

Edited by jpf

Share this post


Link to post
Share on other sites
Posted (edited)

@jpf, In his post of 29 Dec 2018 the link is for a single file for RC4 and another for the key generator. The 10 zips you refer to are probably the independently created Meatwater voice files which modified the original wav files but are not part of the “official” release.

Edited by Ray Proudfoot

Share this post


Link to post
Share on other sites
Posted (edited)

It's using VB6 (32 Bit), therefore, no need for VB .NET runtimes.

I guess it's all to do with properly registering the supporting VB6 dlls. I mean not just having them around sitting in Windows system folder and assuming they are installed. It runs fine on Win 10 Pro x64 bit on a standard installation, including latest updates.

Windows 10 has beefed-up security measures, and it's best not to mess with Windows UAC, folders permissions and such.

Keep permissions in default settings and just set the programs exes you need for flight simming to run as admin.

 

Edited by FS++

Share this post


Link to post
Share on other sites

@FS++, on my install the warning that a dll was missing only appeared after I tried loading a flight plan. Prior to that the splash screen showed followed by the main interface. The splash screen isn't even showing on Skyystorm's PC.

When you say it runs fine is that after you installed RC4?

I have UAC turned off and have done for many years. I'm the only user and an experienced user. The popup every time a exe is launched is irritating. There are no folder permissions required for the program to open and display its interface.

Share this post


Link to post
Share on other sites
3 hours ago, Ray Proudfoot said:

@FS++, on my install the warning that a dll was missing only appeared after I tried loading a flight plan. Prior to that the splash screen showed followed by the main interface. The splash screen isn't even showing on Skyystorm's PC.

When you say it runs fine is that after you installed RC4?

I have UAC turned off and have done for many years. I'm the only user and an experienced user. The popup every time a exe is launched is irritating. There are no folder permissions required for the program to open and display its interface.

I suggest you reset UAC slider to default, restart PC and re-register all required VB dlls and try again.

Don't forget to run the command prompt (for registering dlls) as admin

After that it's up to you whether to keep UAC on.

It could be that when Windows sees it disabled, it silently denies some operations.

 

 

Share this post


Link to post
Share on other sites

@FS++, you didn’t say if you’ve tried installing it yourself.

There’s no need to register dll files until a message appears explicitly stating that.

I have UAC turned off and have no problem so that alone is not the problem.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now