Index: /trunk/src/VBox/Installer/win/VirtualBox_TypeLibWithInterfaces.xsl
===================================================================
--- /trunk/src/VBox/Installer/win/VirtualBox_TypeLibWithInterfaces.xsl	(revision 59394)
+++ /trunk/src/VBox/Installer/win/VirtualBox_TypeLibWithInterfaces.xsl	(revision 59395)
@@ -230,8 +230,11 @@
 
   <!-- Compute the result. -->
-  <xsl:value-of select="$cMethods + $cReservedMethods + $cReadOnlyAttributes + ($cReadWriteAttributes * 2) + $cReservedAttributes + $cParent"/>
+  <xsl:variable name="cMethodsTotal"
+    select="$cMethods + $cReservedMethods + $cReadOnlyAttributes
+          + ($cReadWriteAttributes * 2) + $cReservedAttributes + $cParent"/>
+  <xsl:value-of select="$cMethodsTotal"/>
 
   <!-- For debugging! -->
-  <xsl:if test="0">
+  <xsl:if test="0 or $cMethodsTotal > 256">
     <xsl:message terminate="no">
       <xsl:text>Debug: cMethods=</xsl:text><xsl:value-of select="$cMethods"/>
@@ -244,4 +247,16 @@
       <xsl:text> parent=</xsl:text><xsl:value-of select="$sParent"/>
     </xsl:message>
+    <xsl:if test="$cMethodsTotal > 256">
+      <xsl:message terminate="yes">
+        <xsl:text>
+Fatal xidl error: Interface </xsl:text><xsl:value-of select="@name"/>
+        <xsl:text> has </xsl:text><xsl:value-of select="$cMethodsTotal"/>
+        <xsl:text>! The maximum that older windows allows for proxy stubs is 256.
+                  Please try adjust the number of reserved methods or attributes,
+                  though it's clearly time to consider splitting up this monster interface.
+
+</xsl:text>
+      </xsl:message>
+    </xsl:if>
   </xsl:if>
 </xsl:template>
