VirtualBox

Changeset 59395 in vbox


Ignore:
Timestamp:
Jan 19, 2016 2:33:43 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105092
Message:

VirtualBox_TypeLibWithInterfaces.xsl: Die complaining during packing if an interface has more than 256 methods in total.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/VirtualBox_TypeLibWithInterfaces.xsl

    r59390 r59395  
    230230
    231231  <!-- Compute the result. -->
    232   <xsl:value-of select="$cMethods + $cReservedMethods + $cReadOnlyAttributes + ($cReadWriteAttributes * 2) + $cReservedAttributes + $cParent"/>
     232  <xsl:variable name="cMethodsTotal"
     233    select="$cMethods + $cReservedMethods + $cReadOnlyAttributes
     234          + ($cReadWriteAttributes * 2) + $cReservedAttributes + $cParent"/>
     235  <xsl:value-of select="$cMethodsTotal"/>
    233236
    234237  <!-- For debugging! -->
    235   <xsl:if test="0">
     238  <xsl:if test="0 or $cMethodsTotal > 256">
    236239    <xsl:message terminate="no">
    237240      <xsl:text>Debug: cMethods=</xsl:text><xsl:value-of select="$cMethods"/>
     
    244247      <xsl:text> parent=</xsl:text><xsl:value-of select="$sParent"/>
    245248    </xsl:message>
     249    <xsl:if test="$cMethodsTotal > 256">
     250      <xsl:message terminate="yes">
     251        <xsl:text>
     252Fatal xidl error: Interface </xsl:text><xsl:value-of select="@name"/>
     253        <xsl:text> has </xsl:text><xsl:value-of select="$cMethodsTotal"/>
     254        <xsl:text>! The maximum that older windows allows for proxy stubs is 256.
     255                  Please try adjust the number of reserved methods or attributes,
     256                  though it's clearly time to consider splitting up this monster interface.
     257
     258</xsl:text>
     259      </xsl:message>
     260    </xsl:if>
    246261  </xsl:if>
    247262</xsl:template>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette