Win7 x64 hangs - 0 byte file

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
rlichtefeld
Posts: 4
Joined: Fri Jan 18 2008

Win7 x64 hangs - 0 byte file

Post by rlichtefeld »

I have one machine at one client running Win7 x64 where the driver installs without any error messages, and nothing amiss in the install.log. However, whenever anything is printed to printer, it just hangs. It creates a 0 byte file with the name we tell it, but then it just hangs. Have to kill the app. Nothing in the Locks in the registry.

All the other machines at that client, some running Win7 x64 and some running WinXP, work just fine.

cdintf.dll version 4.0.1.2

Any ideas, or where to start looking?

Rob
Rich
Posts: 76
Joined: Thu Jun 16 2011

Re: Win7 x64 hangs - 0 byte file

Post by Rich »

Please ensure that the Amyuni PDF Converter is assigned to the NUL: port on all x64 PC's. It can be found under the Printer properties under the Ports tab.

Attaching the PDF Converter to a port called NUL: is actually the solution provided by Microsoft to resolve a situation that will occur if you create a custom printer port on a 64bit version of windows.

On some 64bit PCs the PDF Converter may become unresponsive or "hang" while printing when the printer is using a custom print port name or LPT1. This "hanging" is caused because the print spooler will create a temporary file in the windows\system32 directory when printing. When a non admin user tries to print, the print spooler will try to access this temporary file in the windows\system32 directory. However non-admin users do not have access to the windows\system32 directory and this causes the "hanging" when printing.

We opened a support issue with Microsoft and they suggested a solution that involves creating a special printer port called "NUL:". When a printer is attached to this port, the printing does not use the printer spooler, thus no temp file is created and resolves the "hanging" issue.

When our installer (version 4.0) is executed on a 64bit PC, the installer checks the system for a port called “NUL:” (upper case). If this port is not on the PC, the installer creates the port and attaches the printer to this port. In the case where the port is already on the system, the installer simply attaches the printer to the port. If the installer is unable to create a NUL: it attaches the printer to the LPT1.

The procedure of creating a printer port called “NUL:” (upper case) was sent to us by Microsoft as a way of installing our driver on 64bit OSs. However when Microsoft’s OneNote application is installed on a PC, it installs a printer driver and creates a printer port called “nul:”(lowercase). Microsoft tells us to create a port called NUL: and they create one called nul:

What is happening is our installer is case sensitive and is trying to create a port called “NUL: ” (upper case - Microsoft recommendation). The creation of the port is failing because the port is already on the system (“nul:” - lowercase ) and our installer is attaching the printer to LPT1.

You can test this by trying to create a “NUL: ” (upper case) on a PC that already has a “nul:” (lower case). Windows will complain that the port already exists.

In order to resolve this issue you simply need to attached the PDF Converter to the “nul:” port. There are no problems with having multiple printers using the same port.

NOTE: In the current version v4.5 of the PDF Converter the installer is not case sensitive when checking for the port name.
Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - http://www.amyuni.com
aroncox
Posts: 36
Joined: Fri May 15 2009

Re: Win7 x64 hangs - 0 byte file

Post by aroncox »

We've had this quite a lot on 64-bit PCs recently and the fix as suggested above works every time. However our problem is that the installer does not work ever. I suspect this is because on most new machines with Office installed NUL: is already used by some office component (OneNote), but if we manually change it to PDF1 then it works fine (no colon needed). It would be great if the installer did that automatically, searching for PDFn until it finds one free, that would save us a lot of trouble.
Rich
Posts: 76
Joined: Thu Jun 16 2011

Re: Win7 x64 hangs - 0 byte file

Post by Rich »

As of version 4.5 the Amyuni PDF Converter, during the install process, will either create the NUL: port if it is not present or assign the PDF Converter to the NUL: port if it already exists - this is for 64-bit PC's. You can have more than 1 printer assigned to that port.
Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - http://www.amyuni.com
aroncox
Posts: 36
Joined: Fri May 15 2009

Re: Win7 x64 hangs - 0 byte file

Post by aroncox »

Thanks very much for your reply. I'll take a look at Amyuni 4.5.
Post Reply