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.
However one of my flash files will not work as it requires wmode=direct
The moment that I change wmode to direct, I get this error:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
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.
Here's my code:
public Form1()
{
InitializeComponent();
axShockwaveFlash1.WMode = "Direct";
axShockwaveFlash1.LoadMovie(0, swf_location);
axShockwaveFlash1.Play();
}
How do I stop this error and have my application work correctly?
Any hints or help would be much appreciated