title: Failed to create COM object `WScript.shell': CoInitialize has not been called
body: <p>At sometime today, this error occurred and the script hanged:</p>
  
  <pre><code>[21-Aug-2013 08:35:06] PHP Fatal error:  Uncaught exception 'com_exception' with message 'Failed to create COM object `WScript.shell': CoInitialize has not been called.
  ' in C:\path\to\my\script.php:357
  Stack trace:
  #0 C:\path\to\my\script.php(357): com-&gt;com('WScript.shell')
  #1 {main}
    thrown in C:\path\to\my\script.php on line 357
  </code></pre>
  
  <p>This is the line (<strong>running in a loop</strong>) causing the error:</p>
  
  <pre><code>$com = new Com('WScript.shell');
  </code></pre>
  
  <p>This line usually runs fine so I'm not missing any libraries. Why could this happen ?</p>