title: VB6 not responding in windows server 2016
body: <p>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.</p>
  <p>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.</p>
  <p>We used a tool <a href="http://www.joeware.net/freetools/tools/cpau/" rel="nofollow noreferrer">CPAU</a> (starting process with <strong>runas</strong> ) to launch these applications with the login of the user.</p>
  <p>The .bat file works like this :</p>
  <pre><code>cpau.exe -u user -p pass -profile -wait -ex &quot;d:\recette\X.exe
  cpau.exe -u user -p pass -profile -wait -ex &quot;d:\recette\Y.exe
  cpau.exe -u user -p pass -profile -wait -ex &quot;d:\recette\Z.exe
  </code></pre>
  <p>It worked fine until we moved them into Windows 2016.</p>
  <p>The problem: X,Y and Z are randomly not responding. They take 0% CPU and sit idle forever.</p>
  <p>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 <em>taskmanager</em>, Z which is launched next by the .bat and doesn't respond either.</p>
  <p>However, when I start the app Z by myself, it can run normally.</p>
  <p>I installed the Visual C++ Runtime 2008, 2010, 2012,2013 and 2015 (x84 and x64 for all of them) and 2017(x86).</p>
  <p>Does anyone have an idea why these apps are freezing randomly?</p>