VB6 not responding in windows server 2016

Viewed 110

We have a set of applications written in VB6 running on a Windows 2003 server . X connects to a DB and writes some files. Y reads those and then writes the input files for Z.

We have a .bat which launches apps X, Y and Z. When X finishes it then launches Y and so on. They are independent but run in sequence.

We used a tool CPAU (starting process with runas ) to launch these applications with the login of the user.

The .bat file works like this :

cpau.exe -u user -p pass -profile -wait -ex "d:\recette\X.exe
cpau.exe -u user -p pass -profile -wait -ex "d:\recette\Y.exe
cpau.exe -u user -p pass -profile -wait -ex "d:\recette\Z.exe

It worked fine until we moved them into Windows 2016.

The problem: X,Y and Z are randomly not responding. They take 0% CPU and sit idle forever.

Once the problem happens, all the apps launched by the .bat don't respond. That means if Y isn't responding, and I kill Y by taskmanager, Z which is launched next by the .bat and doesn't respond either.

However, when I start the app Z by myself, it can run normally.

I installed the Visual C++ Runtime 2008, 2010, 2012,2013 and 2015 (x84 and x64 for all of them) and 2017(x86).

Does anyone have an idea why these apps are freezing randomly?

0 Answers
Related