PRB: GP Fault on DC_BINADJUST if No Input Bins Are Selectable

Last reviewed: June 5, 1997
Article ID: Q169593
The information in this article applies to:
  • Windows 95 Device Driver Kit (DDK), version 4.0

SYMPTOMS

A printer minidriver may cause a GP Fault when processing DC_BINADJUST (wIndex == 19) if the driver does not create any input bins or does not make any input bins selectable in UniDrv.

CAUSE

The fault occurs when the driver passes the DC_BINADJUST down to UniDrvDeviceCapabilities(). UniDrvDeviceCapabilities() does not check for null string pointers. If no input bins are selected, the bin name strings will be null and a GP Fault will occur.

RESOLUTION

Printer minidrivers must always create at least one selectable input bin. You can create an input bin in UniTool by selecting Printer Data/Paper Info/Source. To make the bin selectable using UniTool, select Printer Data/Model Data, and make sure at least one bin is enabled for Paper Sources in the list of Supported Attributes.

STATUS

This behavior is by design.


Keywords : kbprint kbprb
Version : 4.0
Platform : WINDOWS


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: June 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.