Win32s Is No Longer Limited to 256 Selectors

Last reviewed: January 6, 1997
Article ID: Q147428
The information in this article applies to:
  • Microsoft Win32s version 1.2, 1.25a, 1.30, 1.30a, 1.30c

Prior to version 1.2, Win32s had a limit of 256 selectors that it maintained for selector synthesis and once a selector had been allocated, it could not be reused after freeing it.

When thunking pointers down to the 16-bit side, Win32s allocates selectors on the fly for mapping the 0:32 linear address to the 16:16 address that the 16-bit side could use. These synthesized selectors were saved in an internal table and reused later whenever needed. It was this table that was limited only to 256 selectors in Win32s prior to version 1.20. Since Win32s could reuse these synthesized selectors, they can not be freed either.

However, this problem was eliminated in Win32s version 1.2 and the solution was further enhanced in Win32s version 1.25. Now, the current version of Win32s (version 1.30c) is no longer limited to 256 selectors.

However, it is still possible that a Win32s application could consume all available selectors in the system and potentially bring Windows 3.x to a halt, but such a scenario rarely occurs and is probably specific to a given application.


KBCategory: kbprg
KBSubcategory: w32s
Additional reference words: 1.20 1.25a 1.30 1.30a 1.30c 256 selector
synthesis fix kbinf


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.