DOS prog slow in printing

  • Thread starter Thread starter horst engl
  • Start date Start date
H

horst engl

Hi!
I have an old program in DOS which I'm using on Win2K.
Everything is OK except when giving a print command it takes exactly 30
sec in order to start.
I didn't have this problem with W95 or W98.
I changed all possible settings in spooler and changed printer but I
still got the same problem.
Then I increased the priority of ntvdm.exe(I don't see the DOS prog in
the Task Manager) but nothing changed.
Anybody can give me some hint?
Thanks
Horst
 
You might try reducing the Reg_Sz value of;
LPT_timeout
found at
HKLM\SYSTEM\CurrentControlSet\Control\WOW

Defines how many seconds after the LPT port has been used that Windows NT
waits before grabbing the port, closing it, and flushing the output. This
value should only be needed for MS-DOS-based applications that use BIOS and
do not close the port.

Beware of setting it too low. All MS-DOS application printing is done
through the Windows NT spooler system. In order to know when to send a job
to the spooler, there is a time-out on the printer port. Once something has
been printed to the port, if this time-out passes with no more data
presented to the port, the print job is sent to the spooler. On a slow
computer running a complex calculation to produce the print job, it is
possible that the time-out can expire during this calculation. This will
cause the printout to appear over multiple pages instead of a complete page.
To solve this problem, increase the time-out.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hi!
| I have an old program in DOS which I'm using on Win2K.
| Everything is OK except when giving a print command it takes exactly 30
| sec in order to start.
| I didn't have this problem with W95 or W98.
| I changed all possible settings in spooler and changed printer but I
| still got the same problem.
| Then I increased the priority of ntvdm.exe(I don't see the DOS prog in
| the Task Manager) but nothing changed.
| Anybody can give me some hint?
| Thanks
| Horst
 
You might try reducing the Reg_Sz value of;
LPT_timeout
found at
HKLM\SYSTEM\CurrentControlSet\Control\WOW

Defines how many seconds after the LPT port has been used that Windows NT
waits before grabbing the port, closing it, and flushing the output. This
value should only be needed for MS-DOS-based applications that use BIOS and
do not close the port.

Beware of setting it too low. All MS-DOS application printing is done
through the Windows NT spooler system. In order to know when to send a job
to the spooler, there is a time-out on the printer port. Once something has
been printed to the port, if this time-out passes with no more data
presented to the port, the print job is sent to the spooler. On a slow
computer running a complex calculation to produce the print job, it is
possible that the time-out can expire during this calculation. This will
cause the printout to appear over multiple pages instead of a complete page.
To solve this problem, increase the time-out.
Thank you very much.
There I find:
LPT_timeout=15
SharedWowTimeout=3600
It doesn't seem to me that anyone of the two is set to 30 sec.
I wanted to set them to 10 sec: which one should I modify?
Horst
 
LPT_timeout

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thank you very much.
| There I find:
| LPT_timeout=15
| SharedWowTimeout=3600
| It doesn't seem to me that anyone of the two is set to 30 sec.
| I wanted to set them to 10 sec: which one should I modify?
| Horst
|
|
 
Glad to hear it. Thanks for the feedback.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thank you very much: it worked!
| Horst
 
Back
Top