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.
--- 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);
Scanned by evaluation version of Dr.Web antivirus Daemon http://drweb.ru/unix/
