VB6 Exe not running another computer showing runtime error - vb6

My Visual Basic 6 EXE is not running on another machine...
I have built a VB6 EXE and put in a server.
Both in server and my local system, the EXE is running successfully. But when I am trying to run the exe inside the server computer, from my local system, it is some time running , sometime not running (most of the times it is not running).
All DLL files are properly configured, I cross-checked.
It is showing the error message (as per my code, error message must populate at any stage) as : Run time error '-2147467259(80004005)'

Did you try to download and install the runtime files on the machine that doesn't have VB6 installed?
You can find the setup for the runtime files here: http://www.microsoft.com/en-us/download/details.aspx?id=24417

Related

Visual Studio Setup Project: Failed to execute script after installing app and opening it

So I finished an app, made an .exe, and the original .exe works, but when I try to install the app, the .exe and shortcuts to the .exe don't work. I get this error message: Failed to execute script (app name)
Is there a solution to this or should I make the installer another way or on another computer? In the meantime, I'll try to look into other options.
So I switched to Inno Setup and the first time I built the installer it worked. But after building again, the same error occurred. I eventually tried running the app as admin and it worked, so to fix the issue, I added something in the registry to make the app run as admin by default. This is how you do that.

Docker for Windows exe fails inside Container

In-House developed .exe file is failing in container, it prints no error, and just returns the exit code -1073741515. The exe seems to be running fine on other machines. I understand this error code means it's missing a DLL File or Library but I don't which one.
It's a windowsservercore based container. Running no other application except this .exe, and running it on Command Prompt, although Powershell also return same exit code.
I took a dump of it using dumpbin tool (which comes with Visual Studio), to check which DLL files it uses, and my container is also having all those DLLs
I tried Dr. Memory tools like drmemory.exe and it says the WARNING: libraries needed by the application are missing. Check that it runs successfully on its own and check that all needed libraries are in its directory or on the PATH.
I am running out of options to troubleshoot. How can I find what is causing this .exe to fail or any missing dependency?

IBM Websphere ILog JRules Studio 7.1.1 Installation Failed Due to Error: Could not Java Virtual Machine

Has any one encountered the error: Could not create Java Virtual Machine error while installing IBM Websphere ILog JRules Studio 7.1.1? I have Windows 7 64 bit OS but this error could happen on any Windows machine. By default IBM ships the package for 32 bit so our installation team tried with 32 bit JDK 6 (with many minor versions) for many days but could not figure out. I have posted my own solution below. Check this out and save your life.
You usually start installation by running JRules_V711_CZLX7ML.exe file on windows. It will extract all resources on your temp directory and you might encounter error: "Could Not Create Java Virtual Machine". Just follow these steps and it "might" solve your problem:
1. Go to your temp directory by typing "%temp%" in Start-> Run or Windows Explorer.
2. Look for directory something like: I1403739667. Go inside this directory.
3. Open command prompt and go to I1403739667/Windows/resource/jre/bin
4. Run command: java -version
5. If you see following error, go further otherwise you might have some other problems:
JVMJ9VM011W Unable to load j9jpi24: The specified module could not be found.
Error: could not load Mercury Interactive support. Please run the setup again.
If the problem persists please contact Mercury's Customer support.
JVMJ9VM011W Unable to load j9jpi24: The specified module could not be found.
JVMJ9VM015W Initialization error for library jvmhook(-3): JVM_OnLoad failed
Could not create the Java virtual machine.
This happens if you have installed HP Quick Test Professional which used to be Mercury before HP bought over.
Right click on your computer icon on desktop and look for following environment variable: IBM_JAVA_OPTIONS
Either rename it to IBM_JAVA_OPTIONS_DONOTUSE or delete it.
Try installing again.
NOTE: I had tried to by pass this error by changing the vm property in Rule Studio.lax file to use JDK 6 32 bit installed on my windows machine and was able to install successfully but there were just too many Rules compilation errors which would not make any sense. So NEVER try to use your own JDK. You have to use the IBM JDK shipped as part of Rule Studio.

Nuget.exe crashes when invoked from cmd.exe

I'm trying to automatically download Nuget.exe from a Rakefile, in order to minimize the amount of initial setup needed to run my samples on GitHub.
I've understand how to download a file (I'm using HTTParty) and how to save a binary file (using the b flag on File.new) but now I've got problem running Nuget.exe. In particular:
if I launch it directly or from PowerShell, the executable runs fine;
if I launch it from cmd or from a Rakefile (which in turn runs cmd), Windows tells me that the program "stopped working".
I reproduced the same behavior with the Nuget bootstrapper, so I thought that the cause was some configuration in my computer.
It then occured to me that I installed ansicom, a library to handle ANSI sequences. I disabled it and then Nuget started without any problem.

JVM could not be loaded on windows 7 using LoadLibrary() function from VC++

I am facing one problem in my application as following:
Java classes from my application uses JRE6 files for execution so I have bundled JRE6 folder in my application. An exe from my application loads JVM using function: Loadlibrary(jvm.dll's path). This works fine on XP but on Windows 7 machine an error is being thrown - "Unable to load JVM error."
What could be the issue? any suggestion?
This error disappears on Windows 7 machine if I bundle the above exe(exe from my application) with JRE6 folder at the following path:
JRE6/bin/MyExe.
It seems that exe is able to find its JVM dependencies at the path - JRE6/bin/MyExe. But would it be JRE6 Copyright and Licensing violation if I bundle my exe with JRE6 and distribute it along with my application.
NOTE: Exe from my application only loads JVM and does not add/modify/delete any file from JRE6 folder.
please, try this.
Reinstall the program that uses the jvm.dll file. If the jvm.dll DLL error occurs when you use a particular program, reinstalling the program should replace the file.

Resources