I have a application that writes to the LPT1 directly, in wine there is a lot of missing characters in the printout, in the console printing to /dev/lp0 works ok. I'm using puppy linux. Any help welcome. Thank you
I changed the application to write one char at a time until the buffer is empty and now it works. ( WriteFile(FHandle,PCHAR(mys)^,1,e,nil) )
Dan Kegel wrote:> > ... > That's interesting! Can you write a little test program > that demonstrates the problem, and send us the source > and executable? Maybe we can fix Wine. > - DanCode: program timp; (* Delphi 7 *) {$APPTYPE CONSOLE} uses SysUtils,windows; (* Star SP200 Buffer off sw 6 on, Epson TM-U210PD buffer off sw 1-2 on*) var devname : string = 'LPT1'; ps : array [0..41] of char = '0123456789012345678901234567890123456789'#10#13; nl : array [0..3] of char = #10#13#10#13; i,i2,FHandle : integer; e : DWORD; begin FHandle := CreateFile(PChar(devname), GENERIC_WRITE, 0, nil, OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL, 0 ); try for i := 0 to 49 do WriteFile(FHandle,ps[0],42,e,nil); (* xp ok *) for i := 0 to 3 do WriteFile(FHandle,nl[i],1,e,nil); for i := 0 to 49 do for i2 := 0 to 41 do WriteFile(FHandle,ps[i2],1,e,nil); (* xp&wine ok *) finally CloseHandle(FHandle); end; end. exe: http://ajuda.variavel.com/timp.zip Wine version 0.9.28 kernel 2.6.21, large printer buffers can hide the problem. Best regards Luis Forra ---
On Sat, Mar 8, 2008 at 10:27 AM, fluis <wineforum-user at winehq.org> wrote:> Wine version 0.9.28 kernel 2.6.21, large printer buffers can hide the problem.Thanks for the test app! What do you mean "large printer buffers"? Is this something physically on the printer? i.e. do some printers work because they have large buffers? Which ones? That version of Wine is very old. Can you try again with recent wine (latest is wine-0.9.57) just to be sure?
Dan Kegel wrote:> > What do you mean "large printer buffers"? Is this something physically > on the printer? i.e. do some printers work because they have large buffers? > Which ones? >Is the hardware buffer in the printer, a larger buffer than the job may not show problems. In a POS printing a invoice is a small job 1K-2K, a older printer with a small buffer (Star SP200 1K buffer) will see problems a newer printer with a large buffer (epson TM-U220 4K) seems to work must of the time, so to test I disable the hardware buffer, i tried do change the bios settings (normal, epp etc) and the parport options (irq=none, dma=none etc) to no avail, and the problem shows even in a vmware guest. Dan Kegel wrote:> > That version of Wine is very old. Can you try again with recent wine > (latest is wine-0.9.57) just to be sure? >Yes, I will try. Luis Forra ---