title: Delphi: EMCIDeviceError when starting MCI
body: <p>I use the TMediaPlayer component for playing music.</p>
  
  <p>It works fine with most of my tracks. But it doesn't work with some tracks. When I want to play them, the following error message is shown:</p>
  
  <p><a href="https://i.stack.imgur.com/iGH3y.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iGH3y.jpg" alt="alt text"></a>
  </p>
  
  <p>Which is German but roughly means that:</p>
  
  <p>In the project pMusicPlayer.exe an exception of the class EMCIDeviceError occurred. Message: "Error when starting MCI.". Process was stopped. Continue with "Single Command/Statement" or "Start".</p>
  
  <p>The program quits directly after calling the procedure "Play" of TMediaPlayer.</p>
  
  <p>This error occurred with the following file for example:</p>
  
  <ul>
  <li>file size: 7.40 MB</li>
  <li>duration: 4:02 minutes</li>
  <li>bitrate: 256 kBit/s</li>
  </ul>
  
  <p>I've encoded this file with a bitrate of 128 kBit/s and thus a file size of 3.70 MB: It works fine!</p>
  
  <p>What's wrong with the first file? Windows Media Player or other programs can play it without any problems.</p>
  
  <p>Is it possible that Delphi's TMediaPlayer cannot handle big files (e.g. > 5 MB) or files with a high bitrate (e.g. > 128 kBit/s)?</p>
  
  <p>What can I do to solve the problem?</p>
  
  <p><strong>Additional question:</strong>
  Why can't I use try/except to prevent the message window?</p>
  
  <pre><code>  try
      Player.Play;
    except
      showmessage('Cannot be played');
    end;
  </code></pre>
  
  <p>This doesn't work.</p>