ADC Home > Reference Library > Technical Q&As > Legacy Documents > Printing >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Long Timeout When Opening Certain Files - A StyleWriter Quirk


Q: One of our customers has been complaining that while opening my app files, the computer idles in a _vSyncWait loop for about 45 seconds before that file becomes ready for use. The same thing happens when the application is launched. It seems that the computer is idling while trying to connect to a remote printer (in this case, a StyleWriter). The printer is off-line since the computer it is connected to is off. When the printer is connected locally, there are no problems whatsoever.

Obviously, the PrinterShare software is (incorrectly) looking for a nonexistent print server when the driver is opened, and taking a long time to timeout on the remote connection. It seems reasonable that the printing software should -only- try a remote connection when it's actually spooling or imaging to the remote printer.

Can you offer any insight or workaround?

A: Your customer is probably using the StyleWriter 1200 driver for the printer. This driver is intended to work for three printers (StyleWriter I, StyleWriter II, StyleWriter 1200), each with different engines, options and print records. When any validation is needed for the print record, PrinterShare needs to communicate with the printer to find out exactly which variety of StyleWriter the user has attached before it can validate. This is where trouble begins.

PrinterShare is attempting to communicate with the printer to find out what kind it is, but since there is no printer out there the user has to wait for a timeout (in this case, 45 secs).

This leaves you with basically two solutions:

  1. Leave your app as is, since this should only happen with the StyleWriter 1200 driver.

  2. Don't do any PrintRecord validation or driver opening until your app is actually going to print. This way the timeout wait is somewhat justified and understandable to the user, since there is no printer out there.

[Apr 08 1996]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.