On Sun, 17 Nov 2019 23:35:34 +0100 (CET), Michael Van Canneyt
wrote:
>I will of course need to update the database when we release 3.2 and I update
>the
>docs.
>
I had a look at it too and searched for baseunix fpopen etc.
Found this:
On Thu, 21 Nov 2019 01:16:16 -0500, Brian
wrote:
>Hi all,
>
>Running Ubuntu 18 LTS, I have a console-mode number-cruncher which
>writes occasional output files. It works just fine if the output is
>directed to a drive which is permanently spun up, but can fail if the
>output is directed to a USB
On Sun, 16 Feb 2020 23:36:09 -0300, Fabio Luis Girardi via fpc-pascal
wrote:
>I'll test it tomorrow.
>
>Em Dom, 16 de fev de 2020 18:32, Florian Klämpfl
>escreveu:
>
>> Am 01.02.20 um 18:13 schrieb je...@j-software.dk:
>> > Agreed, the rtl should definitely divide by pagesize if MMAP2 is
>> >
On Thu, 13 Feb 2020 09:36:46 -0700 (MST), jollytall
wrote:
>I have just completed the first release of such an interface for TensorFlow.
>You can check it at github.com/tensorflowforpascal.
Did you notice the date of the previous post in this thread?
It was done 2017-12-07
--
Bo Berglund
On Mon, 13 Apr 2020 21:41:31 +0200, Joost van der Sluis
wrote:
>Op 12-04-2020 om 12:01 schreef Bo Berglund via fpc-pascal:
>> This is something I have been wondering about for a while..
>> When I install FPC from sources I have to create a config file by
>> using this comma
On Fri, 10 Apr 2020 13:44:17 -0700 (MST), fredvs via fpc-pascal
wrote:
>2)Your home directory, it looks for .fpc.cfg.
This is something I have been wondering about for a while..
When I install FPC from sources I have to create a config file by
using this command:
On Sun, 12 Apr 2020 12:16:20 +0200 (CEST), Michael Van Canneyt
wrote:
>You can hardly blame us for you not remembering things... :-)
>
>> Why does fpc look for .fpc.cfg in the user home dir when it is
>> otherwise looking for fpc.cfg?
>
>Because the naming convention on unixes is like that for
I have this old (dev 2004-2008) service application for Win32, which I
hope to migrate/port to Linux.
It was written in Delphi7 on WinXP at the time and I want to move it
to a Debian based Linux.
Obviously stuff like handling control data via Windows Registry etc
has to be rewritten as well as
On Wed, 22 Apr 2020 07:56:38 +0200, Sven Barth via fpc-pascal
wrote:
>Bo Berglund via fpc-pascal schrieb am
>Mi., 22. Apr. 2020, 05:33:
>
>> But what about the general service framework?
>> The existing code uses a class inherited from TService, does this
>> exist o
On Thu, 14 May 2020 22:02:01 +0100, Graeme Geldenhuys
wrote:
>On 14/05/2020 5:21 pm, Giuliano Colla wrote:
>> I need to implement a simple dedicated TCP/IP connection between a
>> client and a server.
>
>You can always use the Indy TCP components too. I've used them for years
>under Delphi and
Maybe a stupid question, but...
I am struggling with porting a Windows service application written
with D7/D2007 back in 2004-2006 or so. I need to get it moved to Linux
because of Windows 10 issues.
Now I am handling a lot of errors from a "CommonFuncs" unit that is
used in many different
On Sun, 17 May 2020 11:15:17 +0200, Bo Berglund via fpc-pascal
wrote:
Maybe a stupid question, but...
I am struggling with porting a Windows service application written
with D7/D2007 back in 2004-2006 or so. I need to get it moved to Linux
because of Windows 10 issues.
Now I am handling a lot
On Sat, 16 May 2020 23:24:34 +0100, Graeme Geldenhuys
wrote:
>> Well the simplest way to get Indy10 into Lazarus is via Online Package
>> Manager!
>
>Do they (whoever it might be) keep it up to date with the lastest Indy?
I believe that it is actually Remy Lebeau who is doing that (I might
be
On Thu, 14 May 2020 18:21:36 +0200, Giuliano Colla
wrote:
>I see that fpc provides a Socket unit in rtl-extra and a fpSock unit in
>fcl-net. At first glance they both appear to provide what I need.
LNet is a package that contains useful socket classes and refer back
to sockets. Can be
On Sun, 15 Mar 2020 08:58:36 -0700 (PDT), geneb
wrote:
>Use NNTP. I think the fpc lists are mirrored here at news.gmane.io.
Exactly!
This is what I have done since I began following FPC/Lazarus (using
the GMane mirror of the mail list) and now I have a local searchable
threaded archive of it
On Tue, 19 May 2020 18:25:54 +0200, Giuliano Colla
wrote:
>Now I'm planning to look in more detail the old Delphi implementation,
>in order to see how they were tacking advantage of Libc. If you're
>interested I'll let you know my results.
>
Yes, please!
--
Bo Berglund
Developer in Sweden
On Wed, 20 May 2020 11:15:59 +0200 (CEST), Michael Van Canneyt
wrote:
>
>
>On Wed, 20 May 2020, Marco van de Voort wrote:
>
>>
>> Does somebody have a compatible TService somewhere for dual compilation
>> Delphi/Lazarus purposes? There is daemonapp, but that seems to be
>> incompatible, but
On Tue, 19 May 2020 19:22:55 +0200, Luca Olivetti
wrote:
>Move(Hello^,buffer,len)
or:
Move(Hello[0],buffer,len);
--
Bo Berglund
Developer in Sweden
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
On Thu, 3 Sep 2020 10:22:17 +0200, Martin Frb via fpc-pascal
wrote:
>On 03/09/2020 10:09, Bo Berglund via fpc-pascal wrote:
>> I would like to create a buffer into which a thread can push incoming
>> data and the main thread can extract it for processing.
>> Data are coming
On Thu, 3 Sep 2020 15:47:53 +0200, Martin Frb via fpc-pascal
wrote:
>On 03/09/2020 14:54, Bo Berglund via fpc-pascal wrote:
>> Now to my question:
>> Is there some *example* around for using TLazThreadedQueue as a
>> circular buffer?
>> In the examples dir are o
On Tue, 01 Sep 2020 10:22:08 +0200, Bo Berglund via fpc-pascal
wrote:
>Maybe I could tie the timeout to the actual baud used? Slower speeds
>use longer timeout etc? Timeout could be set to the time it takes to
>transfer the number of bytes to read?
>
>And both arguments could be
On Mon, 31 Aug 2020 12:01:33 +0200, Bo Berglund via fpc-pascal
wrote:
>Thanks, I was worried about reading more data than specified.
>Now I can let the loop in Execute read say 10 bytes or so with timeout
>ane process these, then loop back after firing off the event.
Just a
On Fri, 21 Aug 2020 21:03:31 +0200, Bo Berglund via fpc-pascal
wrote:
>Instead I need to add a thread for reading data so I can have an event
>driven reception of data. It would read available data and fire off a
>NotifyEvent to handle the incoming data in the main application.
I
On Wed, 02 Sep 2020 00:34:23 +0200, Tomas Hajny via fpc-pascal
wrote:
>On 2020-09-02 00:21, Bo Berglund via fpc-pascal wrote:
>
> .
> .
>> Strange because I have read that cthreads must be first in uses in the
>> lpr program files in order to make threads work.
>&
On Mon, 31 Aug 2020 11:15:10 +0200 (CEST), Michael Van Canneyt via
fpc-pascal
wrote:
>
>
>On Mon, 31 Aug 2020, Bo Berglund via fpc-pascal wrote:
>
>> On Fri, 21 Aug 2020 21:03:31 +0200, Bo Berglund via fpc-pascal
>> wrote:
>>
>> But when doing this I have
On Tue, 1 Sep 2020 20:31:57 +0200 (CEST), Michael Van Canneyt via
fpc-pascal
wrote:
>Yes, but you can only override a virtual constructor. The TThread
>constructor is not virtual.
I am doing the setup in a different way so I don't have to use Create.
My new FpSerialPort works fine now with the
I have a script I use all the time to install FPC/Lazarus on Raspberry
Pi units when I configure for development.
Today when I was setting up a Raspberry PiZero I was hit with this
message when I was going to build fpc 3.0.4 (sources checked out from
svn):
Makefile:2790: *** The only supported
On Wed, 09 Sep 2020 00:03:29 +0200, Bo Berglund via fpc-pascal
wrote:
>No, it is on an RPi4 so it is ArmV7.
In fact I have been told on the RPi forum RPi4 is Armv8
Armv6: Pi0, PiB, PiA+
Armv7: Pi2Bv1.1
Armv8: Pi2Bv1.2, Pi3, Pi4
But they could not advice how to use a newer RPi (higher numbe
I am not very informed about how make works when building fpc
installations, I have just used commands I have gathered online and it
has worked...
Now I would like to know:
1) Does make clean inside the fpc source dir erase ALL of the binaries
produced by an earlier build inside that source tree?
On Tue, 08 Sep 2020 00:59:51 +0200, Bo Berglund via fpc-pascal
wrote:
>Today when I was setting up a Raspberry PiZero I was hit with this
>message when I was going to build fpc 3.0.4 (sources checked out from
>svn):
>
>Makefile:2790: *** The only supported starting compiler ve
On Wed, 09 Sep 2020 17:34:14 +0200, Tomas Hajny via fpc-pascal
wrote:
>> Question:
>> Can I make a parallel installation of FPC and Lazarus on my RPi4 which
>> is using the Armv6 settings during the make and thus get a system that
>> will produce compatible programs?
>>
>> Or do I have to scrap
I am using RPi3 and RPi4 platforms when working on RPi projects with
Lazarus 2.0.8 and Fpc 3.0.4.
Now I realized that the binaries I create will probably not work on
PiZero and RPi2 devices because these are Arm6 and the dev platform is
Arm7.
Is there some project setting I can activate in order
On Mon, 7 Sep 2020 14:45:31 -0700 (MST), Brian via fpc-pascal
wrote:
>Bo,
>
>Most of the users on this forum have never interfaced with hardware , as you
>can see from the responses. Those who have interfaced with hardware have
>developed circular buffers which they know work , and they reuse
On Tue, 08 Sep 2020 15:11:07 +0200, Bo Berglund via fpc-pascal
wrote:
>Is there some project setting I can activate in order to build for
>*all* RPi devices by only using ARMv6 instructions?
I used Project/ProjectOptions/ConfigAndTarget and:
set Target CPU family = arm
set Target pro
Ì have a problem using TFpTimer on Linux (FPC 3.0.4, Lazarus 2.0.8 on
Raspbian).
The application is a small GUI test app where I have added a timer in
order to update the display with incoming data.
So I have it set up like this:
{$mode Delphi}
interface
uses
...
fptimer,
...
type
On Mon, 7 Sep 2020 12:40:07 +0200 (CEST), Michael Van Canneyt via
fpc-pascal
wrote:
>> Why does the FpTimer event not fire?
>
>Do you call checksynchronize at regular intervals ? The default timer is
>threaded, and the OnTimer event is called in the main thread. For this to
>work, you need to
On Sat, 12 Sep 2020 01:54:20 +0200, Tomas Hajny via fpc-pascal
wrote:
>> 3) Does the following command overwrite existing files from an earlier
>> attempt so the CPU target can be replaced?
>> For ARMv7:
>> make install OPT="-dFPC_ARMHF" PREFIX=/home/pi
>> FPC="/home/pi/dev/ppcarm"
>> For ARMv6:
On Sat, 12 Sep 2020 01:54:20 +0200, Tomas Hajny via fpc-pascal
wrote:
>> Hopefully
>>
>> make clean
>> make all
>> make install
>>
>> with the proper options will do the trick
>> TIA..
>
>They should.
Progress update:
I proceeded to create a script that rebuilds fpc using
On Wed, 09 Sep 2020 23:47:28 +0200, Bo Berglund via fpc-pascal
wrote:
>OK, I conducted an experiment tonight, it took a while:
>
>1) Grabbed a new SDcard and wrote PiOS Lite on it.
>
>2) Configured the SDcard in another RPi4 where I can access all of the
>new SD and put my
I would like to create a buffer into which a thread can push incoming
data and the main thread can extract it for processing.
Data are coming from the serial port in a worker thread and should be
consumed by the main thread. The data is a byte stream.
Are there any good examples available?
I have
On Tue, 01 Sep 2020 23:55:08 +0200, Tomas Hajny via fpc-pascal
wrote:
>Well, I believe that this supposed mystery may be resolved easily. ;-)
>First of all - have you tried to find out what does the displayed error
>number (232) mean? Quick searching reveals that runtime error 232 may
On Tue, 1 Sep 2020 14:21:44 +0200 (CEST), Michael Van Canneyt via
fpc-pascal
wrote:
>You must still set the default value in the constructor.
>
>>
>> Note that the thread itself has no idea what is the baudrate in use so
>> it cannot calculate the proper value at the start of Execute...
>> And
I get an error message when building a project after updating from SVN
to get the sources that build fine on another RPi4 identical in
configuration.
"Fatal: Cannot find LazSerial used by RemoteIO. Check if package
LazSerialPort is in the dependencies."
The LazSerial dependency has been
On Tue, 01 Sep 2020 21:07:56 +0200, Bo Berglund via fpc-pascal
wrote:
>I get an error message when building a project after updating from SVN
>to get the sources that build fine on another RPi4 identical in
>configuration.
>
>"Fatal: Cannot find LazSerial used by Remote
On Tue, 01 Sep 2020 22:46:55 +0200, Bo Berglund via fpc-pascal
wrote:
>STRANGE "SOLUTION", BUT WHY?
>
>So even though I am not really using *anything* in LazSerial I added
>LazSerialPort back to the dependencies and rebuilt the application.
&g
On Tue, 8 Sep 2020 20:09:53 +0200, Jonas Maebe via fpc-pascal
wrote:
>On 08/09/2020 16:13, Bo Berglund via fpc-pascal wrote:
>> This happened also after I ran a Run/CleanUpAndBuild operation, so
>> clearly there is something I am missing here.
>
>Is your FPC installat
On Fri, 11 Sep 2020 16:58:50 -0400, James Richters via fpc-pascal
wrote:
>I'm trying to figure out how to send and receive Arrays of Bytes or perhaps a
>buffer of hex codes over TCP/IP, but everything I find seems to want to send
>and receive strings. Can someone please point me in the right
On Thu, 8 Oct 2020 13:04:43 +0200 (CEST), Michael Van Canneyt via
fpc-pascal
wrote:
>> OK,
>> is it possible to define the TMyRecord with default values so that
>> when I do Default(TMyRecord) it will be non-zero defaults written
>> instead of zeros?
>
>No. You will always need code for that.
On Thu, 8 Oct 2020 23:00:32 +0200 (CEST), Michael Van Canneyt via
fpc-pascal
wrote:
>
>
>On Thu, 8 Oct 2020, Ryan Joseph via fpc-pascal wrote:
>
>>
>>
>>> On Oct 8, 2020, at 5:14 AM, gabor via fpc-pascal
>>> wrote:
>>>
>>> You can define typed constant and assign it to variable.
>>>
>>> type
I would like to know if data containers of type packed record are
zeroed when the item is declared?
type
TMyRecord = packed record
AField1: byte;
AField2: word;
AField3: single;
AField4: boolean;
AField5: array[0..15] of Cardinal;
end;
procedure SomeProc;
var
myRec:
On Thu, 8 Oct 2020 10:47:52 +0200 (CEST), Michael Van Canneyt via
fpc-pascal
wrote:
>
>
>On Thu, 8 Oct 2020, Bo Berglund via fpc-pascal wrote:
>
>> I would like to know if data containers of type packed record are
>> zeroed when the item is declared?
>>
>>
What is the advantage of using synaser over serial in a simple non-gui
program running in the console in Linux?
I have been struggling making LazSerial work in a console app and been
adviced to instead use synaser (which is what lazserial is built on).
A few months back it seemingly started to
On Fri, 21 Aug 2020 20:06:04 +0200, Christo Crause via fpc-pascal
wrote:
>In my limited experience the FPC serial unit is a bit more low level than
>the components such as synaser etc. There is a bit more of a learning
>curve and one needs to decide whether to go blocking or not and how to
Tonight there was a power outage in my home where I have a RaspberryPi
4B development system with Lazarus 2.0.8 and Fpc 3.0.4.
When it happened the system was running including Lazarus.
Now when I start Lazarus I get to a dialog saying:
On Mon, 24 Aug 2020 09:59:19 +0200, Mattias Gaertner via fpc-pascal
wrote:
>> Can I copy this file from an RPi3B where I have installed the same
>> versions of Lazarus and Fpc in the same file locations (I use the same
>> install scripts on all RPi:s)?
>
>Yes.
>After start fix the paths in Tools
On Sun, 27 Sep 2020 19:44:36 +0200, Sven Barth via fpc-pascal
wrote:
>> I am not using wsmenus...
>>
>
>Yes, you are, even if it is indirectly. Otherwise the compiler or linker
>wouldn't complain about it.
>
It would be very good if the linker could be told to show a message
saying from where
On Sun, 27 Sep 2020 22:07:16 +0200, Bo Berglund via fpc-pascal
wrote:
>The only required packages for my application now are:
>LCLBase and indylaz. And if I remove LCLBase it still compiles OK but
>also still fails the link step.
I finally got it to compile!
What I did was to add I
On Wed, 23 Sep 2020 08:28:20 -0700, Ralf Quint via fpc-pascal
wrote:
>Similar like moving code blocks around in
>Python with a one-off indentation and all the sudden the flow of that
>code changes, without complaining...
This use of whitespace as block delimiter is why I never could cope
with
On Sun, 27 Sep 2020 23:40:09 +0200, Bo Berglund via fpc-pascal
wrote:
>On Sun, 27 Sep 2020 22:07:16 +0200, Bo Berglund via fpc-pascal
> wrote:
>
>>The only required packages for my application now are:
>>LCLBase and indylaz. And if I remove LCLBase it still compiles OK b
I am trying to find the cause of a linker error when building my
application on Linux.
While doing this I looked in the project file projname.lpi and found
this strange entry:
Why is the path delimiter defined inside the project information file?
And what are th consequences when
On Thu, 22 Oct 2020 18:26:22 +0200, Winfried Bartnick via fpc-pascal
wrote:
>
>Am 22.10.20 um 16:17 schrieb Bo Berglund via fpc-pascal:
>> I have not gotten any new posts on the Lazarus list since 2 weeks now
>> (last seen was Oct 8th).
>> Has it been stopped or is th
I am porting an old application from Delphi to Lazarus and Windows to
Linux.
This application has a unit ExecWait, which was created to simplify
running tool programs from the main program, so it supplies two
procedures as:
function ExecAndWait(Cmdline: string; Hide: boolean = false; MaxWait:
On Sun, 19 Jul 2020 08:46:14 +0200 (CEST), Michael Van Canneyt
wrote:
>
>
>On Sun, 19 Jul 2020, Bo Berglund via fpc-pascal wrote:
>
>> I am porting an old application from Delphi to Lazarus and Windows to
>> Linux.
>> This application has a unit ExecWait, which was
On Sun, 19 Jul 2020 17:51:59 +0200 (CEST), Michael Van Canneyt
wrote:
>
>
>On Sun, 19 Jul 2020, Bo Berglund via fpc-pascal wrote:
>
>> On Sun, 19 Jul 2020 08:46:14 +0200 (CEST), Michael Van Canneyt
>> wrote:
>>
>>> Various RunCommand procedures in proce
On Sun, 19 Jul 2020 08:46:14 +0200 (CEST), Michael Van Canneyt
wrote:
>Various RunCommand procedures in process unit:
>https://www.freepascal.org/docs-html/current/fcl/process/runcommand.html
>
But it looks like it hangs around until the started process exits...
How can I set a timeout on the
On Thu, 13 Aug 2020 12:07:10 +0200, "Carsten Bager"
wrote:
>The links to download the Raspberry PI version, is not working.
>Does anyone know if there will be a PI version in the future
Why not simply check out the fpc sources via svn to the RPi and build
it yourself there?
You will need the
I am working on the conversion of a service application from
Windows/Delphi to Linux/FPC.
When going through the code I found this procedure, which I do not
quite understand the workings of, can someone please explain how it
operates?
procedure Swap2(var Source);
var
H, L: word;
begin
H :=
I am writing a cross-platform program (console program, no GUI).
I am using Lazarus 2.0.8 and FPC 3.0.4 on both Linux and Windows.
During sebugging I have put numerous writeln commands in the code to
track what is happening.
I started on Windows and all worked just fine according to
expectations.
On Thu, 9 Jul 2020 16:25:50 +, Alexander Grotewohl
wrote:
>perhaps try 'reset' or 'stty sane' in the terminal before running your program?
reset in PuTTY gives me a new resized empty screen, but works exactly
the same afterwards.
>are you using the crt or video units at all?
Yes, see
On Thu, 09 Jul 2020 21:13:38 +0200, Rainer Stratmann
wrote:
>I had exactly the same behaviour.
>
>Some setterm commands solved it, if I remember correct.
>
>setterm -blank 0
Response was:
setterm: terminal xterm-256color does not support --blank
>setterm -powersave off
Power save is not
On Thu, 9 Jul 2020 19:36:31 +0200 (CEST), Michael Van Canneyt
wrote:
>Is this done in a thread ? Since you're using indy, I suppose so.
>
>The crt unit is not thread safe. The implementation on Windows and Linux is
>totally different, which may explain the difference you see.
Is there a way to
On Thu, 09 Jul 2020 23:11:34 +0200, Tomas Hajny
wrote:
>You can use the unit Keyboard as well, which is cross-platform.
I did as follows:
uses
...
Keyboard,
...
begin
...
repeat
//ch := ReadKey; //ReadKey is not supported by Keyboard...
Read(ch);
until ch='q'; {q}
On Fri, 10 Jul 2020 01:26:24 +0200, Tomas Hajny
wrote:
Well I do not believe the problem I am seeing is because of thread
safe or not.
This test server is just running the main thread (the program itself)
where the detection of keyboard entry q is in a loop to make it
possible to end execution
I am using FindAllFiles() in order to enumerate the files of a certain
name pattern in a FPC application on Linux.
I am using Fpc 3.0.4 and Lazarus 2.0.8.
FindAllFiles() has a switch to search the files in subdirectories and
this works fine.
But I would like to enumerate the subdirectories
On Fri, 24 Jul 2020 00:29:10 +0200 (CEST), Michael Van Canneyt
wrote:
>
>
>On Fri, 24 Jul 2020, Bo Berglund via fpc-pascal wrote:
>
>> I am using FindAllFiles in order to list the files in a directory and
>> it works fine.
>>
>> But I also need the size and
On Sat, 25 Jul 2020 10:51:37 +0200, Bart via fpc-pascal
wrote:
>On Sat, Jul 25, 2020 at 12:24 AM Bo Berglund via fpc-pascal
> wrote:
>
>> But I would like to enumerate the subdirectories themselves (without
>> the content).
>
>Take a look at how FindAllFiles
On Sat, 25 Jul 2020 00:08:01 +0200, Bo Berglund via fpc-pascal
wrote:
>But I would like to enumerate the subdirectories themselves (without
>the content).
Turns out that there is a procedure FindAllDirectories() in
fileutil...
It does exactly what I need. :)
I wonder why Google failed to
On Sun, 19 Jul 2020 10:55:56 +0200 (CEST), Michael Van Canneyt
wrote:
>> These are used exactly 1 time each in the full application...
>
>All the more reason to dispense with the unit.
>Less code to maintain.
>
Seems like RunCommandInDir or simply RunCommand can do what the
ExecWait with all
I am using FindAllFiles in order to list the files in a directory and
it works fine.
But I also need the size and timestamp of the file so I searched the
net for it.
What I found was:
var T: TDateTime;
T := FileDateTodateTime(FileAge(filename));
But FileSize() needs a file argument to an open
On Fri, 14 Aug 2020 11:55:14 +0100, John Lee via fpc-pascal
wrote:
>Bo, don't think suggesting people should do it themselves (not very easy)
>is v helpful.- Carsten clearly wanted a precompiled version so just tell
>him where there is one! j.
A precompiled compiler is not really helpful
On Sun, 27 Dec 2020 21:15:03 +0100, Jean SUZINEAU via fpc-pascal
wrote:
>I think TBlockSerial can work in your console program context. May be
>TLazSerial can be more tricky to use in your context, you'll need to use
>events/callbacks and FCL.
I have struggled with LazSerial in a console
On Sun, 27 Dec 2020 10:47:59 -0500, James Richters via fpc-pascal
wrote:
>I'm trying to figure out how to read a packet of HEX Bytes of an unknown
>length that have no specific termination character over a serial port as
>efficiently as practical.
What exactly do you mean by HEX Bytes?
Hex
On Tue, 8 Dec 2020 06:37:56 -0500, James Richters via fpc-pascal
wrote:
>Great idea! Thank you for the suggestion, that sould make it very easy to
>track down.
>
>> Separate your big one line into a lot of lines like
>
>James
>
The suggestion was to make *your post* readable...
As it is it
I have not gotten any new posts on the Lazarus list since 2 weeks now
(last seen was Oct 8th).
Has it been stopped or is there a Gmane connectivity issue?
I am communicating with the free-pascal.general list and lazarus via
Gmane news interface.
--
Bo Berglund
Developer in Sweden
On Mon, 28 Dec 2020 14:12:02 +0100, Jean SUZINEAU via fpc-pascal
wrote:
>Le 28/12/2020 à 13:16, Bo Berglund via fpc-pascal a écrit :
>> Synchronize(CallEvent); //Supply received data in FBuffer to
>> caller
>
>You are using TThread.Synchronize.
>
>In
On Sun, 27 Dec 2020 18:20:32 -0500, James Richters via fpc-pascal
wrote:
>>On Sun, 27 Dec 2020 10:47:59 -0500, James Richters via fpc-pascal
>> wrote:
>>
>>>I'm trying to figure out how to read a packet of HEX Bytes of an
>>>unknown length that have no specific termination character over a
On Sat, 2 Jan 2021 15:31:11 +0100 (CET), Michael Van Canneyt via
fpc-pascal
wrote:
>
>Hello !
>
>I didn't make it quite in time for the new year, but still:
>
>The fpdoc engine (what is used to document the FPC & Lazarus units)
>is now capable of outputting the documentation in markdown.
>
On Mon, 4 Jan 2021 11:38:09 +0100 (CET), Michael Van Canneyt via
fpc-pascal
wrote:
>> Is there an MD renderer created with free pascal that can be plugged
>> into Apache webserver so that the MD files are rendered correctly in
>> any browser?
>
>You can use for example this one to translate
If I by habit add a bunch of often used units to the uses clause will that
affects the size of the compiled application even if they are not in fact used?
I.e. if there are unused units in uses can I shrink the application size by
removing them?
If so is this the same for GUI and non-GUI
On Wed, 16 Jun 2021 12:08:26 +0200 (CEST), Michael Van Canneyt via fpc-pascal
wrote:
>FPC/lazarus tell you which units are unused, and in the Lazarus IDE you can
>use the
>quick actions of the message dialog to quickly remove all unused units.
>I use it all the time.
Thanks, I will have a look
On Wed, 16 Jun 2021 12:30:55 +0200, Mattias Gaertner via fpc-pascal
wrote:
>> Since the final binary size after using strip -s on the exe file is
>> 271 kb it seems a bit big!
>> Or is there a lot behind the scenes I have missed?
>
>Classes is a hog.
>
I commented it away ane recompiled.
Worked
On Fri, 18 Jun 2021 18:13:52 +0200, Jean SUZINEAU via fpc-pascal
wrote:
>
>function _2d( _i: Integer): String;
>begin
> Str( _i, _2d);
> if Length(_2d) < 2 then _2d:= '0'+_2d;
>
>end;
Thanks,
it seems like this gets rid of the Format call, which probably brings in a lot
of un-needed
On Fri, 18 Jun 2021 08:34:43 -0400, James Richters via fpc-pascal
wrote:
>Do a Ping to an address on the network to see if it's connected?
>
I would need a ping with only one execution so I can put it into a loop and
break after a successful ping or break after some timeout value.
Seems like
I would like to know how I can check if a remote network is available, i.e. if
the VPN system has succeeded to connect the remote network.
I need this in a class that connects an OpenVPN tunnel on demand and takes it
down after use. Unfortunately openvpn-gui does not have an API call to do
On Fri, 18 Jun 2021 15:00:18 +0200, Jean SUZINEAU via fpc-pascal
wrote:
>May be you can get some information with the "route" command .
>
>If you run "route print" in cmd command prompt, you can get information
>on the different networks available.
>
On Fri, 18 Jun 2021 16:39:52 +0200, Jean SUZINEAU via fpc-pascal
wrote:
>I've never used open vpn, may be the 10.117 is defined in your
>configuration file ?
>
>For the vpns I've used, the ip adressed were fixed.
The tunnel IP address is defined server side and the route is pushed to the
On Wed, 12 May 2021 12:42:14 +0200 (CEST), Michael Van Canneyt via fpc-pascal
wrote:
>> So right now I try to read up on how to actually handle the mime object
>> here...
>>
>> And I had an additional question:
>>
>> Does Synapse throw exceptions when errors happen? It does not look like that
On Tue, 18 May 2021 16:20:29 +0100, Henry Vermaak via fpc-pascal
wrote:
>On Tue, 18 May 2021 at 11:50, Sven Barth via fpc-pascal
> wrote:
>
>> I don't think we need to mention any specific clients (and why did your list
>> not include Filezilla? :P )
>
>Because FileZilla bundles adware when you
I have a pretty sizable console app written with Delphi 15 years ago but ported
to Linux using FreePascal (3.2.0) with Lazarus (2.0.12) as IDE. It runs as a
systemd service on a Raspberry Pi3.
Basically it is a scheduler, which checks every minute if there is a task to
run, otherwise it waits for
On Tue, 18 May 2021 21:59:33 +0200, Bo Berglund via fpc-pascal
wrote:
>This is working seemingly OK, but today when I checked the RPi I found using
>top
>that it was running 11% CPU, which is strange because it has nothing to do at
>the moment.
>
>I have tried to be as conser
1 - 100 of 244 matches
Mail list logo