* Printing stops after 6 pages
@ 2004-03-15 10:50 Denny Schierz
0 siblings, 0 replies; 2+ messages in thread
From: Denny Schierz @ 2004-03-15 10:50 UTC (permalink / raw)
To: linux-msdos
hi,
we using dosemu 1.3.0 with direct printing. The problem is, if we
printing more than six pages, the printer stops. I can't find any
solution for that :-/
any hinds?
cu denny
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Printing stops after 6 pages
@ 2004-03-15 18:11 Stas Sergeev
0 siblings, 0 replies; 2+ messages in thread
From: Stas Sergeev @ 2004-03-15 18:11 UTC (permalink / raw)
To: linux-msdos
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
Hello.
Denny Schierz wrote:
> we using dosemu 1.3.0 with direct printing. The problem is, if we
> printing more than six pages, the printer stops. I can't find any
> solution for that :-/
> any hinds?
Try -D9+p log, maybe that will
shed some light on a problem.
But even at a first glance there
seem to be a memory leak in a
printer code, which is probably
responsible for your problem. Try
the attached patch.
[-- Attachment #2: lpt.diff --]
[-- Type: text/plain, Size: 357 bytes --]
--- src/base/dev/misc/lpt.c Sun Jan 18 00:30:29 2004
+++ src/base/dev/misc/lpt.c Mon Mar 15 21:04:07 2004
@@ -155,6 +155,7 @@
if (pipe == NULL)
error("system(\"%s\") in lpt.c failed, cannot print!\
Command returned error %s\n", cmdbuf, strerror(errno));
+ free(cmdbuf);
bufsize = ftell(lpt[prnum].file);
buf = malloc(bufsize);
[-- Attachment #3: Type: text/plain, Size: 81 bytes --]
Scanned by evaluation version of Dr.Web antivirus Daemon
http://drweb.ru/unix/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-15 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-15 10:50 Printing stops after 6 pages Denny Schierz
-- strict thread matches above, loose matches on Subject: below --
2004-03-15 18:11 Stas Sergeev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox