Sidebar crashes when adding a Gadget that uses WMP

Discussion in 'Windows Vista Music, Pictures and Video' started by Jon Abbott, Jun 22, 2006.

  1. Jon Abbott

    Jon Abbott Guest

    I've written a Gadget to watch NASA TV in the Sidebar, and have noticed two
    potential bugs.

    1. When the Gadget is docked, Sidebar occasionally gets killed by DEP
    2. If you zip it up into "NASATV.gadget" and double-click on it to initially
    install it, Sidebar crashes. If you reload Sidebar, it seems to work fine and
    has added the gadget.


    Code as follows:

    gadget.xml:

    <?xml version="1.0" encoding="utf-8" ?>
    <gadget>
    <name>NASA TV</name>
    <namespace>www.nasa.gov</namespace>
    <version>1.0.0.0</version>
    <author name="J.Abbott">
    <info url="http://www.nasa.gov/multimedia/nasatv" text="www.nasa.gov" />
    <logo src="logo.png" />
    </author>
    <copyright>2006</copyright>
    <description>Watch NASA TV</description>
    <icons>
    <icon height="63" width="51" src="icon.png" />
    </icons>
    <hosts>
    <host name="sidebar">
    <base type="html" apiVersion="1.0.0" src="gadget.html" />
    <permissions>full</permissions>
    <platform minPlatformVersion ="0.3"/>
    </host>
    </hosts>
    </gadget>


    gadget.html:

    <html>
    <head>
    <title>NASA TV</title>
    <style>
    body {
    margin: 1px 1px 1px 1px;
    }
    </style>
    <script src="gadget.js" language="javascript"
    type="text/javascript"></script>
    </head>
    <body onload="StartUpGadget();">
    <EMBED TYPE="application/x-mplayer2"
    SRC="http://www.nasa.gov/55644main_NASATV_Windows.asx"
    WIDTH=100%
    HEIGHT=100%
    AUTOSTART="1"
    SHOWCONTROLS="0">
    </body>
    </html>


    gadget.js:

    System.Gadget.onDock = Docked;
    System.Gadget.onUndock = Undocked;

    function Docked() {
    document.body.style.width = "130px";
    document.body.style.height = "97px";

    }

    function Undocked() {
    document.body.style.width = "512px";
    document.body.style.height = "384px";

    }

    function StartUpGadget() {
    if (System.Gadget.docked) { Docked(); }
    else { Undocked(); }
    }
     
    Jon Abbott, Jun 22, 2006
    #1
    1. Advertisements

  2. #1 - I'll try your gadget and see if I can track down this DEP issue -
    sounds like a bug, either in sidebar or in the WMP ActiveX control.

    #2 - Do you by any chance have the sidebar gadget pane open while you're
    trying to install? There's a known bug that can cause a crash in that
    scenario.

    -Bruce
     
    Bruce Williams [MSFT], Jun 23, 2006
    #2
    1. Advertisements

  3. Jon Abbott

    Jon Abbott Guest

    Yes, Sidebar was open when adding - that explains that one.

    Some odd stuff going on with the Sidebar. Did another Gadget to put a
    ShockWave version of Space Invaders in the Sidebar, which crashes it
    immediately every time it loads. It works fine in a browser window though.

    Should Shockwave work on the Sidebar? I can eMail it to you, if you want to
    debug.
     
    Jon Abbott, Jun 23, 2006
    #3
  4. Jon Abbott

    Jon Abbott Guest


    #2 has been fixed by KB919893. Adding the Gadget no longer crashes SideBar.

    Jon
     
    Jon Abbott, Jun 23, 2006
    #4
  5. I know that Flash has a bug that can cause DEP crashes; that might be your
    ShockWave issue too.

    I don't know of any similar DEP issue with the WMP ActiveX control, but I
    haven't had a chance to try your gadget yet to track that problem down.

    -Bruce
     
    Bruce Williams [MSFT], Jun 24, 2006
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.