Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-22 Thread Graeme Geldenhuys
On 2016-01-22 11:43, Bo Berglund wrote: > On my Delphi I use the 10.5.7 version so I thought (in hindsight) taht > it would be better to use that also in Lazarus... Glad you got it sorted out in the end. I would still recommend using the latest code in SVN Trunk though. Bug fixes are always a

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-22 Thread Bo Berglund
On Thu, 21 Jan 2016 14:50:23 +, Graeme Geldenhuys wrote: >> >> What svn URL do you recommend? >> And which tag? > >I use the URL: https://svn.atozed.com:444/svn/Indy10/trunk > > >ie: I use Trunk (v10.6.2) directly. The repository is not that fast >moving,

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-22 Thread Bo Berglund
On Fri, 22 Jan 2016 12:43:09 +0100, Bo Berglund wrote: >If I browse to the server using https://svn.atozed.com:444/svn/Indy10 >then I can enter the tags dir but the names there are seemingly >incompatible with the svn co command since they seem to contain loads >of spaces,

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Michael Schnell
On 01/21/2016 10:42 AM, Bo Berglund wrote: I could probably rip out the APro component and replace it with a TCPIP socket one instead since the RS232 is not going to be used anymore. The beauty of AsyncPro is that it provides the same user interface for serial and socket component. Hence a

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Michael Schnell
On 01/21/2016 01:25 PM, Mark Morgan Lloyd wrote: I didn't say anything wouldn't work. Sorry. I took "issue" for a potential problem Copying data tends to introduce a significant performance hit, which is why many OSes try to avoid it by passing pointers. The typical result of passing

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 10:13:23 +, Graeme Geldenhuys wrote: >On 2016-01-21 09:42, Bo Berglund wrote: >> I started testing LNet a few months ago but did not get so far then >> and had to drop it for other tasks. > >I can also recommend Indy 10 (source code direct

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Michael Schnell
On 01/21/2016 11:38 AM, Mark Morgan Lloyd wrote: That of course is a significant issue. I don't see what could prevent this from working. The simple method would be to create a new buffer for the data to be transferred to the main thread and copy the data already received in a "static

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 01/21/2016 11:38 AM, Mark Morgan Lloyd wrote: That of course is a significant issue. I don't see what could prevent this from working. I didn't say anything wouldn't work. The simple method would be to create a new buffer for the data to be transferred to the

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 12:24:51 +0100, Michael Schnell wrote: >The beauty of AsyncPro is that it provides the same user interface for >serial and socket component. Hence a serial port could be local or done >with a "ComServer" device without a problem > That is why the

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Michael Schnell
On 01/21/2016 10:09 AM, Bo Berglund wrote: . which implements an *event driven* serial comm port, which can switch between serial and sockets communications. The incoming data are dealt with in the OnTriggerAvail event. So these are the only specific items used by me, but obviously in the

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Mark Morgan Lloyd
Michael Schnell wrote: - Once the appropriate data is collected you *create* a "transfer object" (an instance of a transfer class that allocates and includes buffer for the data (not just a pointer if the buffer could be reused by the thread ! That of course is a significant issue. I've

[Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
I have a device comm simulation program created in Delphi 7 (or maybe 2007), which uses TurboPower Async Pro components for the serial and TCPIP communications. It is used for production testing and also for development purposes. On Windows of course Now I would like to port this to the

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Michael Schnell
On 01/21/2016 10:09 AM, Bo Berglund wrote: I have a device comm simulation program created in Delphi 7 (or maybe 2007), which uses TurboPower Async Pro components for the serial and TCPIP communications. It is used for production testing and also for development purposes. On Windows of

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 10:21:12 +0100, Michael Schnell wrote: >On 01/21/2016 10:09 AM, Bo Berglund wrote: >> I have a device comm simulation program created in Delphi 7 (or maybe >> 2007), which uses TurboPower Async Pro components for the serial and >> TCPIP communications. It

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Graeme Geldenhuys
On 2016-01-21 09:42, Bo Berglund wrote: > I started testing LNet a few months ago but did not get so far then > and had to drop it for other tasks. I can also recommend Indy 10 (source code direct from their SVN repository). Indy 10 works very well these days with FPC 2.6.4 and FPC 3.0 -

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Graeme Geldenhuys
On 2016-01-21 16:48, Bo Berglund wrote: > My earlier experience is that the Indy download is VERY big and when I > analyzed what needed to be actually used I found that the only files > needed (for Delphi) were those in subdirectories Core, Protocols and I don't know the exact dependencies per

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 17:11:29 +, Graeme Geldenhuys wrote: >On 2016-01-21 16:48, Bo Berglund wrote: >> My earlier experience is that the Indy download is VERY big and when I >> analyzed what needed to be actually used I found that the only files >> needed (for

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 14:50:23 +, Graeme Geldenhuys wrote: >On 2016-01-21 14:10, Bo Berglund wrote: >> >> What svn URL do you recommend? >> And which tag? > >I use the URL: https://svn.atozed.com:444/svn/Indy10/trunk > > >ie: I use Trunk (v10.6.2) directly.

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Graeme Geldenhuys
On 2016-01-21 17:25, Bo Berglund wrote: > Sizewise this is what I got: > pi@rpi2-jessie2:~/dev $ du -sh ./indy10/ > 77M ./indy10/ > > So the total download is 77 MB Yes, and that is only one revision. SVN is terrible! As far as I remember from SVN, it keeps a full (uncompressed) copy of

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Graeme Geldenhuys
On 2016-01-21 19:15, Bo Berglund wrote: > So I copied the entire Lib directory over and then renamed to indy10. > > And I copied in indylaz.lpk file from your previous message on top of > the one from svn. > > Opened it in Lazarus Packages/Open... and hit Use/Install. > > Unfortunately it did

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 20:33:33 +, Graeme Geldenhuys wrote: >On 2016-01-21 19:15, Bo Berglund wrote: >> So I copied the entire Lib directory over and then renamed to indy10. >> >> And I copied in indylaz.lpk file from your previous message on top of >> the one

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Žilvinas Ledas
On 2016-01-21 22:53, Bo Berglund wrote: Well, nz looked quite like one to me. OTOH the tabs contain different components so the duplication is really only the names. First tab is for components with names starting with letters A to N, and second tab for components starting with letters M to

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Paul Breneman
On 01/21/2016 08:50 AM, Graeme Geldenhuys wrote: On 2016-01-21 14:10, Bo Berglund wrote: What svn URL do you recommend? And which tag? I use the URL: https://svn.atozed.com:444/svn/Indy10/trunk ie: I use Trunk (v10.6.2) directly. The repository is not that fast moving, and Remy seems to

Re: [Lazarus] Is porting Delphi program using AsyncPro to fpc/laz possible?

2016-01-21 Thread Bo Berglund
On Thu, 21 Jan 2016 18:29:56 +, Graeme Geldenhuys wrote: >On 2016-01-21 17:25, Bo Berglund wrote: >> Sizewise this is what I got: >> pi@rpi2-jessie2:~/dev $ du -sh ./indy10/ >> 77M ./indy10/ >> >> So the total download is 77 MB > >Yes, and that is only one