BUG: WinNT DDK SCSI Tape Class Driver Sample Causes System Crash

Last reviewed: June 13, 1997
Article ID: Q170085
The information in this article applies to:
  • Microsoft Win32 Device Development Kit (DDK) for Windows NT, version 4.0

SYMPTOMS

The SCSI tape class driver shipped on the Windows NT DDK crashes the system if it is built and used without modification. The driver source is in \ddk\src\storage\class\scsitape and builds a binary called TAPE.SYS.

Note that this bug is only in the driver sample shipped on the Windows NT DDK. The TAPE.SYS driver shipped with the Windows NT operating system does not experience this problem.

CAUSE

The SCSI tape class driver is building with the wrong class driver library. The correct library should be OLDCLASS.LIB.

RESOLUTION

Modify the SCSI tape class driver SOURCES file. Change the line in the file from:

   TARGETLIBS=$(BASEDIR)\lib\*\$(DDKBUILDENV)\class.lib

to:

   TARGETLIBS=$(BASEDIR)\lib\*\$(DDKBUILDENV)\oldclass.lib

In order for TAPE.SYS to build, first build the OLDCLASS.LIB library. Run "build -cef" (or simply "bld") in \ddk\src\storage\class\oldclass. Then run "build -cef" (or "bld") in \ddk\src\storage\class\scsitape. This will create a valid version of TAPE.SYS.

Note that the Oldclass directory is not built by default when the Class directory is built. This is because the DIRS file does not include the Oldclass directory. If you wish to make Oldclass build whenever the Class directory is built, change the DIRS file in \ddk\src\storage\class to the following:

   DIRS= oldclass  \
         class     \
         scsicdrm  \
         scsicdwo  \
         scsidisk  \
         scsitape  \
         spti

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

For specific information on building and debugging Windows NT device drivers, refer to the Windows NT DDK online documentation.


Keywords : NTDDKStorage
Version : 4.0
Platform : NT WINDOWS
Issue type : kbbug


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