BUG: GDI Assertion Failure in PostScript Driver

ID: Q135843


The information in this article applies to:


SYMPTOMS

The sample PostScript printer driver does not load as built with the Windows NT DDK version 3.51. When you test the driver from Notepad the following error occurs:

Cannot access your printer.
Be sure that your printer is connected properly and use Control Panel
to verify that the printer is configured properly.
A checked build of the driver gives the following messages in WinDbg/WinDbgRm:

   "GDI Assertion Failure: PSCRIPT!GetFont: Couldn't find font resource."
   "GDI Assertion Failure: PSCRIPT!DrvEnablePDEV:  GetFont failed."
   "Module Unload: C:\WINNT351\SYSTEM32\SPOOL\DRIVERS\W32X86\1\PSCRIPT.DLL" 


RESOLUTION

Add the following lines to the SOURCES file for the driver:


     DLLENTRY=PSDLLInitProc
     SUBSYSTEM_VERSION=3.50 

The first flag makes the pscript DLL initializing entry point visible to the system. The second flag, which is optional, disables some new options in the linker so that the resulting driver can be run on a version 3.5 system.


STATUS

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

Additional query words: 3.51


Keywords          : 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: March 2, 1999