title: C# Playing a flash video causes an error with wmode=direct
body: <p>I'm trying to play a flash movie inside of my C# window forms application, everything goes well and I can successfully load my .swf files.</p>
  
  <p>However one of my flash files will not work as it requires <strong>wmode=direct</strong></p>
  
  <p>The moment that I change wmode to direct, I get this error:<br/>
  <strong><em>"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."</em></strong></p>
  
  <p>This error only occurs when I change the wmode to direct, I've looked around but I haven't found a way to resolve this problem.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>public Form1()
  {
      InitializeComponent();
      axShockwaveFlash1.WMode = "Direct";
      axShockwaveFlash1.LoadMovie(0, swf_location);
      axShockwaveFlash1.Play();
  }
  </code></pre>
  
  <p>How do I stop this error and have my application work correctly?<br/>
  Any hints or help would be much appreciated</p>