Microsoft KB Archive/927825: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - ">" to ">")
 
(One intermediate revision by the same user not shown)
Line 51: Line 51:
<div class="errormessage">
<div class="errormessage">


A Runtime Error has occurred. Do you wish to Debug? Line: <code>&lt;line number&gt; </code>Error: Unspecified error
A Runtime Error has occurred. Do you wish to Debug? Line: <code><line number> </code>Error: Unspecified error


</div>
</div>
Line 79: Line 79:
<ol>
<ol>
<li>Open the gadget's .html file.</li>
<li>Open the gadget's .html file.</li>
<li>Type the following code inside a &lt;script&gt; tag:
<li>Type the following code inside a <script> tag:
<div class="indent">
<div class="indent">



Latest revision as of 10:26, 21 July 2020

Knowledge Base


Article ID: 927825

Article Last Modified on 5/16/2007



APPLIES TO

  • Windows Vista Ultimate
  • Windows Vista Enterprise
  • Windows Vista Business
  • Windows Vista Home Premium
  • Windows Vista Home Basic
  • Windows Vista Ultimate 64-bit Edition
  • Windows Vista Enterprise 64-bit Edition
  • Windows Vista Business 64-bit Edition
  • Windows Vista Home Premium 64-bit Edition
  • Windows Vista Home Basic 64-bit Edition



SYMPTOMS

When you use a Windows Vista Sidebar gadget, you receive an error message that resembles the following:

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

.

CAUSE

This problem occurs if the gadget's script code tries to set a gadget event to null. Sidebar gadget events cannot be set to null.

WORKAROUND

To work around this problem, assign a function to the Sidebar gadget event.

MORE INFORMATION

Steps to reproduce the problem

  1. Open the gadget's .html file.
  2. Type the following code inside a <script> tag:
    System.Gadget.ondock = myFunc;
    System.Gadget.ondock = null;

For more information about Sidebar gadgets, visit the following Microsoft Web site:

Keywords: kbexpertiseinter kbtshoot kbscript kberrmsg kbprb KB927825