MIDI object cause to IE6 crash

 

In one of project I use MIDI object to play midi files.  Everything work perfect in IE7, until I test it on IE6. After couple of seconds that I stop midi IE6 crash with some strange error.

ole1

So after my research I found that when you try to delete  MIDI object after that you stop him by default midi control IE6 crash. By the way sometimes it takes a while untils this error will apear and it`s probably depend on ie6 version.

Tested with: audio/x-midi, audio/midi withoud classid with same result

IE6 version:  6.0.2900.2180.xpsp_sp2_gdr.070227-2254 

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
 <head>
  <title>Midi/Object Test Page</title>
  <script>
  function stopMusic()
  {
    var music = document.getElementById('testme');
    music.stop();
    document.getElementById('testme2').innerHTML = "123";
  }
  </script>
 </head>
 <body>
    <div id="testme2">
    <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="testme">
        <param name="autostart" value="true">
        <param name="FileName" value="1730199.mid">
    </object>
    </div>
  <input type="button" onclick="stopMusic()" value="test me" />
 </body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *