Wednesday, December 15, 2010

Runtime Error While Using Windows Vista Sidebar Gadget

This article helps you in troubleshooting the Sidebar runtime error.

Symptom:

When you try to use a Windows Vista Sidebar gadget, you get the following error message:

"A Runtime Error has occurred. Do you wish to Debug? Line: <line number> Error: Unspecified error"

Cause for this
:

This occurs when the gadget's code tries to set a gadget event to null.   The events cannot be set to null.

Workaround
:

You need to get into the gadget's .html file and assign a function to the Sidebar gadget event manually.

Type this code inside a <script> tag:

System.Gadget.ondock = myFunc;
System.Gadget.ondock = null;

This should take care of the problem.

0 Responses to “Runtime Error While Using Windows Vista Sidebar Gadget”

Post a Comment

All Rights Reserved dBLACKBLUE | Blogger Template by Bloggermint