[Bug 11917] Parallel port printing problem (missing flow control?)

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Mar 8 12:41:46 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=11917





--- Comment #1 from Dan Kegel <dank at kegel.com>  2008-03-08 12:41:45 ---
User gave a nice test program to illustrate the problem:


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  (I'll attach it)

Wine version 0.9.28 kernel 2.6.21, large printer buffers can hide the problem.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list