Hi,

I have been using Synaser fine with both Linux and Windows using Lazarus
but thought I'd test out the latest code with Win64 (which wouldn't
compile before under win64 Lazarus).
Did some serial IO testing with lazarus 0.9.28.2/fpc 2.2.4 under 64bit
windows7 using Synaser.pas 007.004.000 (4th February) from trunk. Found
that receiving is not working. Synaser detects that a character is
received but can't read it, characters just queue up. Think I have
tracked it down to a ReadFile call in RecvBuffer but I have not been
able to come up with any solution. Not sure if it is a Win64 or Windows7
problem, assumed its a Win64 problem but Windows7 is the only Win64 OS I
have, Win32 Vista and XP work fine.

The test program is basically:
  try
    ser:=TBlockSerial.Create;
    ser.LinuxLock:= False;
    sleep(1000);
    ser.Connect('COM1'); //ComPort
    Sleep(1000);
    ser.config(9600, 8, 'N', SB1, False, False);
    InputMemo.Append('Device: ' + ser.Device + '   Status: ' +
ser.LastErrorDesc +' '+Inttostr(ser.LastError));
    Application.ProcessMessages;
    Sleep(1000);
    repeat
      ByteVal:= ser.RecvByte(100);
      HexVal:= IntToHex(ByteVal, 2)+ ' ';
      if ser.LastError = 0 then
        InputMemo.Append(HexVal);  // print the hex value
      Application.ProcessMessages;
    until l; // Exit pressed
  finally
    ser.Free;
  end;


Regards,
John Morris.



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to