Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-07 Thread Marc Santhoff
On Do, 2017-09-07 at 13:32 +0200, Bo Berglund wrote: > On Wed, 06 Sep 2017 23:21:17 +0200, Marc Santhoff > wrote: > > >Could that be some sort of timeout? > > > >You're setting > > > > FTcpComm.ReadTimeout := 30; > > > >but I have no idea what order of magnitude this 30 is.

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-07 Thread Bo Berglund
On Thu, 7 Sep 2017 10:42:59 +, Mark Morgan Lloyd wrote: >SerWrite() returns the actual number of bytes it's written, which could >be anywhere from the number passed as the parameter down to zero (if >hardware handshaking's being used at a lower level).

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-07 Thread Bo Berglund
On Thu, 7 Sep 2017 01:54:18 +0200, José Mejuto wrote: >El 06/09/2017 a las 21:22, Bo Berglund escribió: >>Inc(RxTcp, Length(Buf)); >>SerWrite(FComH, Buf[0], Length(Buf)); >>Inc(TxSer, Length(Buf)); >> Where could I be losing incoming serial

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-07 Thread Bo Berglund
On Wed, 06 Sep 2017 23:21:17 +0200, Marc Santhoff wrote: >Could that be some sort of timeout? > >You're setting > > FTcpComm.ReadTimeout := 30; > >but I have no idea what order of magnitude this 30 is. Maybe streching >the timeout a little bit can help? > >I had several cases

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-07 Thread Mark Morgan Lloyd
On 06/09/17 19:30, Bo Berglund wrote: Where could I be losing incoming serial data? FTcpComm.IOHandler.ReadBytes(Buf, -1, false); .. SerWrite(FComH, Buf[0], Length(Buf)); SerWrite() returns the actual number of bytes it's written, which could be anywhere from the number passed as the

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-07 Thread Mark Morgan Lloyd
On 06/09/17 21:15, Bo Berglund wrote: I could also create another test program, a serial sniffer that couldbe set up to just log whatever appears on the serial lines. I need a3-way cable for that of course. I'd also suggest that that sort of thing works better with on-board or at least

Re: [fpc-pascal] Mantis doesn't contain a 3.0.4 product version

2017-09-07 Thread Graeme Geldenhuys
On 2017-09-07 09:38, Michael Van Canneyt wrote: Done. Thanks Michael. G. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Mantis doesn't contain a 3.0.4 product version

2017-09-07 Thread Michael Van Canneyt
On Thu, 7 Sep 2017, Graeme Geldenhuys wrote: On 2017-09-07 09:12, Michael Van Canneyt wrote: There is in my browser:) I checked in project management, and there is a 3.0.4 product version. Seeing as you see it, would you please be so kind as to update this bug report and apply the 3.0.4

Re: [fpc-pascal] Mantis doesn't contain a 3.0.4 product version

2017-09-07 Thread Graeme Geldenhuys
On 2017-09-07 09:20, Michael Van Canneyt wrote: Probably because it isn't released yet, then. Well the 3.0.4-rc1 has been made public (for testing and feedback) by Marco, so I think that is also the point that the version should be made available in Mantis. Regards, Graeme -- fpGUI

Re: [fpc-pascal] Mantis doesn't contain a 3.0.4 product version

2017-09-07 Thread Graeme Geldenhuys
On 2017-09-07 09:12, Michael Van Canneyt wrote: There is in my browser:) I checked in project management, and there is a 3.0.4 product version. Seeing as you see it, would you please be so kind as to update this bug report and apply the 3.0.4 product version to it. I submitted the report

Re: [fpc-pascal] Mantis doesn't contain a 3.0.4 product version

2017-09-07 Thread Michael Van Canneyt
On Thu, 7 Sep 2017, Graeme Geldenhuys wrote: On 2017-09-07 09:12, Michael Van Canneyt wrote: I checked in project management, and there is a 3.0.4 product version. See attached screenshot, there isn't in mine. :-/ Probably because it isn't released yet, then. Attach it to 3.0.2 then.

Re: [fpc-pascal] Mantis doesn't contain a 3.0.4 product version

2017-09-07 Thread Graeme Geldenhuys
On 2017-09-07 09:12, Michael Van Canneyt wrote: I checked in project management, and there is a 3.0.4 product version. See attached screenshot, there isn't in mine. :-/ Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My

Re: [fpc-pascal] Mantis doesn't contain a 3.0.4 product version

2017-09-07 Thread Michael Van Canneyt
On Thu, 7 Sep 2017, Graeme Geldenhuys wrote: On 2017-09-07 09:07, Michael Van Canneyt wrote: Attach them to version 3.0.4 There is no 3.0.4 Product Version either. There is in my browser :) I checked in project management, and there is a 3.0.4 product version. Michael.

Re: [fpc-pascal] Mantis doesn't contain a 3.0.4 product version

2017-09-07 Thread Graeme Geldenhuys
On 2017-09-07 09:07, Michael Van Canneyt wrote: Attach them to version 3.0.4 There is no 3.0.4 Product Version either. Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Mantis doesn't contain a 3.0.4 product version

2017-09-07 Thread Michael Van Canneyt
On Thu, 7 Sep 2017, Graeme Geldenhuys wrote: Hi, How are we supposed to report bugs against 3.0.4-rc1 if there is no such Product Version defined in Mantis? Attach them to version 3.0.4 Michael. ___ fpc-pascal maillist -

[fpc-pascal] Mantis doesn't contain a 3.0.4 product version

2017-09-07 Thread Graeme Geldenhuys
Hi, How are we supposed to report bugs against 3.0.4-rc1 if there is no such Product Version defined in Mantis? Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Re: [fpc-pascal] Where and Why is there a memory leak?

2017-09-07 Thread Sven Barth via fpc-pascal
Am 07.09.2017 03:48 schrieb "Ryan Joseph" : > > > > On Sep 6, 2017, at 10:20 PM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > > > You're missing that FHook was declared as IHook, not THook. > > > > In terms of memory why does it matter how it