sidebar crashes adding gadget uses wmp

Sidebar crashes when adding a Gadget that uses WMP

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(); } }

#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
"Jon Abbott" wrote in message

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(); } }

"Bruce Williams [MSFT]" wrote:

#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

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.

#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
"Jon Abbott" wrote in message 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.


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

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
"Jon Abbott" wrote in message

"Bruce Williams [MSFT]" wrote: #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
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.

Windows Vista

Topic:


Nick: