Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Silverlight 3 plugin bug - Rendering silverlight app wi... RSS

1 reply

Last post Jun 17, 2009 07:07 PM by alexd123

(0)
  • alexd123

    alexd123

    0 Points

    2 Posts

    Silverlight 3 plugin bug - Rendering silverlight app with Flash causes error

    Jun 12, 2009 08:52 PM | LINK

    My Silverlight application is creating and manipulating IFrames that contain Flash movies/applications. The flash movies are created using 'swfobject.js'. My application is transparent, and runs with a higher Z-order on the page as the Flash. Once the flash gets rendered, and flash animations play, the memory usage of my iexplore.exe starts to skyrocket, tops off at around 1.8GB and then my Silverlight application crashes (gets an Application_Exit call). The error displayed is the AG_E_UNKNOWN_ERROR.

    This happens only in Internet Explorer (7 in my case) with the Silverlight 3 plugin. I've tested in Firefox with the SL3 installed, and it works fine. It also works fine with the SL2 plugin, in Internet Explorer and in Firefox. Also, the first time I installed the plugin, this was not a problem, but it appeared a day or two later (probably either through Windows Updates or automatic Silverlight updates it got introduced as a bug).

    This problem is a showstopper for our project, and we're relying on some new features from Silverlight 3 for the release. I hope this is a known issue and will be fixed soon...

     

    Thanks.

    --------------------------

     Below are some code snippets that might help with reproducing the problem:

    My .aspx page that initializes the Silverlight control and the IFrame containing the Flash:

    <body style="height: 100%; margin: 0; overflow: hidden;" >
    <form id="form2" runat="server" style="height: 100%;">
    <asp:ScriptManager ID="ScriptManager2" runat="server">
    </asp:ScriptManager>
    <div id="Div1" style="height: 100%; width: 100%; z-index: 10; position: absolute;">
    <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/ErrorTest.xap" MinimumVersion="2.0.31005.0"
    Width="100%" Height="100%" Windowless="true" PluginBackground="Transparent" />
    </div>
    <div id="Div2" style="height: 100%; width: 100%; z-index: 1; position: absolute;">
    <iframe id="myIFrame" allowtransparency='true' style="position: absolute; left: 0px;
    top: 0px; width: 640px; height: 480px;"
    frameborder="0" scrolling="no" src="Container.html" />
    </div>
    </form>
    </body>

      

    This is my Container.html which contains my flash movie:

    <head>
    <title>Container</title>

    <script type="text/javascript" src="swfobject.js"></script>

    <script type="text/javascript">

    var flashvars = false;
    var params = {
    movie: 'movie.SWF',
    FlashVars: '',
    AllowScriptAccess: "always",
    wmode: "transparent"
    };
    var attributes = {
    id: "Template",
    name: "Template",
    width: "100%",
    height: "100%",
    wmode: "transparent"
    };

    swfobject.embedSWF('movie.SWF', "Div1", "100%", "100%", "9.0.0", false, flashvars, params, attributes);
    </script>

    </head>
    <body style="height: 100%; margin: 0; background-color: Transparent;">
    <div id="Div1" style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;" />
    </body>
      
  • alexd123

    alexd123

    0 Points

    2 Posts

    Re: Silverlight 3 plugin bug - Rendering silverlight app with Flash causes error

    Jun 17, 2009 07:07 PM | LINK

    After further testing with this issue, I've found that this problem only occurs on certain machines. So far what we're finding is that Dell laptops (personally I have a Latitude E6400, and my colleague has a Dell Precision M65) display this behavior.

    It helps a lot to find this out, meaning that hopefully it's a small range of configurations that are affected by this, although I'm being forced to develop and test and debug using Firefox, while our application is catered to mostly IE browser users.