[fpc-pascal] Want to create a program launcher for Windows 11, suggestions please.

2025-09-17 Thread Bo Berglund via fpc-pascal
"dock" itself to the bottom of the desktop? I have written a good many Windows appliocations using Lazarus/FreePascal but I have never gone into these Windows internals before... Grateful for any help! -- Bo Berglund Developer in Sweden ___

Re: [fpc-pascal] Want to create a program launcher for Windows 11, suggestions please.

2025-09-16 Thread Bo Berglund via fpc-pascal
On Tue, 09 Sep 2025 11:28:20 +0200, Bo Berglund via fpc-pascal wrote: >So I asked ChatGPT if it could provide some advice and it did actually do that. >It built a new Lazarus project so it is a start anyway. > >But I am not through looking over the code it suggested, there are

Re: [fpc-pascal] Difference in TOpenDFialog behavior Win10 => Win11

2025-09-11 Thread Bo Berglund via fpc-pascal
On Tue, 9 Sep 2025 16:57:21 +0200, Bart via fpc-pascal wrote: >On Tue, Sep 9, 2025 at 11:23?AM Bo Berglund via fpc-pascal > wrote: > >> This is an issue that I believe is caused by Windows 11... > >AFAIK nothing relevant has changed in the WS code that could cause this

Re: [fpc-pascal] Want to create a program launcher for Windows 11, suggestions please.

2025-09-09 Thread Bo Berglund via fpc-pascal
On Mon, 08 Sep 2025 21:46:06 +0200, Bo Berglund via fpc-pascal wrote: >>I was curious so I put your question into ChatGPT and got some answers that >>looked interesting. I’ve barely done any Windows development so I don’t >>know the internals but I found ChatGPT to be really

[fpc-pascal] Difference in TOpenDFialog behavior Win10 => Win11

2025-09-09 Thread Bo Berglund via fpc-pascal
n the TOpenDialog object dlgOpen to force it to set the dir pane to select the parent dir of the file? (I wish I did not do the Windows 11 upgrade) -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Want to create a program launcher for Windows 11, suggestions please.

2025-09-08 Thread Bo Berglund via fpc-pascal
On Mon, 08 Sep 2025 21:46:06 +0200, Bo Berglund via fpc-pascal wrote: >On Mon, 8 Sep 2025 09:50:10 -0500, Hairy Pixels via fpc-pascal > wrote: > >> On Sep 8, 2025 at 9:18:42?PM, Bo Berglund via fpc-pascal < >>fpc-pascal@lists.freepascal.org> wrote: >> >&

Re: [fpc-pascal] Want to create a program launcher for Windows 11, suggestions please.

2025-09-08 Thread Bo Berglund via fpc-pascal
On Mon, 8 Sep 2025 09:50:10 -0500, Hairy Pixels via fpc-pascal wrote: > On Sep 8, 2025 at 9:18:42?PM, Bo Berglund via fpc-pascal < >fpc-pascal@lists.freepascal.org> wrote: > >> I have written a good many Windows appliocations using Lazarus/FreePascal >> but I &g

Re: [fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Bo Berglund via fpc-pascal
isted among the possibilities at least. So I have to right-click instead od doubleclick it to start and then select "Open With". But finally: If I open Settings and go to default apps and select Video I see my app listed among the candidates!

[fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Bo Berglund via fpc-pascal
appears in the command line so it can be immediately played rather than having to click the OpenFile button and navigate to the video and select it. Any ideas, suggestions, links? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] How to compile program from command line on Linux?

2024-12-16 Thread Bo Berglund via fpc-pascal
On Mon, 16 Dec 2024 15:06:45 +0100, Bo Berglund via fpc-pascal wrote: >On Mon, 16 Dec 2024 14:19:56 +0100 (CET), Michael Van Canneyt via fpc-pascal > wrote: > >> >> >>On Mon, 16 Dec 2024, Bo Berglund via fpc-pascal wrote: >> >>> I have written a c

Re: [fpc-pascal] How to compile program from command line on Linux?

2024-12-16 Thread Bo Berglund via fpc-pascal
On Mon, 16 Dec 2024 14:19:56 +0100 (CET), Michael Van Canneyt via fpc-pascal wrote: > > >On Mon, 16 Dec 2024, Bo Berglund via fpc-pascal wrote: > >> I have written a command line utility program on Linux using Lazarus as the >> IDE. >> This was done a while

[fpc-pascal] How to compile program from command line on Linux?

2024-12-16 Thread Bo Berglund via fpc-pascal
case how? Last build of the application was using fpc ver 3.2.2 and probably Lazarus 2.2.4 I have never compiler a FreePascal program from the command line before TIA -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Signing applications, how?

2024-08-10 Thread Bo Berglund via fpc-pascal
use. > >I guess you'll have to get ($$$) a valid signing certificate too. > Can I use LetsEncrypt certificates or must I cash out big to get a working one? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist -

[fpc-pascal] Signing applications, how?

2024-08-10 Thread Bo Berglund via fpc-pascal
round 2012-2016... Is there a how-to for FreePascal and Delphi that outlines how to do it? The process should be possible to be applied to already existing exe files because the builds can no longer be performed since the original dev environments no longer exist. TIA -- Bo Berglund Developer

[fpc-pascal] Extra linkxxx.res files left over when compiling/building project

2024-01-15 Thread Bo Berglund via fpc-pascal
link3564.res 2024-01-13 13:4023 833 link5720.res Of course I can delete them but why has this happened? Should these not be temporary or else located below the lib dir somewhere? And what are they used for? Lazarus 2.2.4/Fpc 3.2.2 on Windows 10 x64 -- Bo Berglund Developer in Sweden

Re: [fpc-pascal] Error when building fpc on aarch64-linux still not resolved

2023-12-09 Thread Bo Berglund via fpc-pascal
On Thu, 16 Nov 2023 13:15:27 +0100, Bo Berglund via fpc-pascal wrote: >I tried to post this to the devel list but it seems to have failed so now >trying >the general list instead... > >See ticket: >https://gitlab.com/freepascal.org/fpc/source/-/issues/39295 > >It was

Re: [fpc-pascal] Question regarding building fpc from sources

2023-11-30 Thread Bo Berglund via fpc-pascal
ding building from sources so I will revisit that and check what will work. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Question regarding building fpc from sources

2023-11-29 Thread Bo Berglund via fpc-pascal
E mv "$HOME/fpc.cfg" "$HOME/.fpc.cfg" Somewhere in the process above the newly built compiler/ppcarm disappears from the compiler dir Is this what should happen or is it an error? -- Bo Berglund Developer in Sweden ___ fp

Re: [fpc-pascal] Cannot build fpc on Raspberry Pi4B running PiOS 64 bit (aarch64 Linux)

2023-11-24 Thread Bo Berglund via fpc-pascal
On Tue, 21 Nov 2023 10:33:46 +0100, Tomas Hajny via fpc-pascal wrote: >On November 21, 2023 8:33:55 +0100, Bo Berglund via fpc-pascal > wrote: >>I did not know that there is a library of seed compilers available on >>Sourceforge, I thought everything had moved over to GitLab

Re: [fpc-pascal] Cannot build fpc on Raspberry Pi4B running PiOS 64 bit (aarch64 Linux)

2023-11-20 Thread Bo Berglund via fpc-pascal
On Sat, 18 Nov 2023 13:31:51 +0100, Sven Barth via fpc-pascal wrote: >Bo Berglund via fpc-pascal schrieb am >Sa., 18. Nov. 2023, 11:32: > >> Today after realizing that I did the following on an RPi4B where I have >> used apt >> to install the fpc compiler so I

Re: [fpc-pascal] Cannot build fpc on Raspberry Pi4B running PiOS 64 bit (aarch64 Linux)

2023-11-18 Thread Bo Berglund via fpc-pascal
On Fri, 17 Nov 2023 11:27:53 +0100, Sven Barth via fpc-pascal wrote: >Bo Berglund via fpc-pascal schrieb am >Do., 16. Nov. 2023, 08:19: > >> From the Lazarus list: >> >> >Just a quick follow-up here: >> >It seems like the fpc sources have not been

[fpc-pascal] Error when building fpc on aarch64-linux still not resolved

2023-11-16 Thread Bo Berglund via fpc-pascal
ticket above. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cannot build fpc on Raspberry Pi4B running PiOS 64 bit (aarch64 Linux)

2023-11-16 Thread Bo Berglund via fpc-pascal
On Thu, 16 Nov 2023 08:19:17 +0100, Bo Berglund via fpc-pascal wrote: >I have tried every fpc source release from 3.2.2 up to trunk with the exact >same >result (here from a build try on trunk) Forgot to mention that I am using fpcupdeluxe when installing fpc/lazarus on my RPi4B with

[fpc-pascal] Cannot build fpc on Raspberry Pi4B running PiOS 64 bit (aarch64 Linux)

2023-11-15 Thread Bo Berglund via fpc-pascal
d I believe that a lot of people will experience this since the 64 bit OS on RPi4 has been recently released as the *recommended* version on that popular platform... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Difference between string and Tbytes as procedure arguments?

2023-11-05 Thread Bo Berglund via fpc-pascal
tion like this and preserve the content? function TSSConnection.ParseCmdFileData(var SSCmdFile: TSSCommandFile; const Buf: TBytes): boolean; Or must I copy the argument Buf inside the function to a local BufL version? That is what you adviced, right? Note: I have now found another function that ch

[fpc-pascal] Difference between string and Tbytes as procedure arguments?

2023-11-05 Thread Bo Berglund via fpc-pascal
had been declared as var... Is there a way to simply tell Delphi/FreePascal to treat also TBytes as copy rather than a pointer to the real data? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https

Re: [fpc-pascal] Serial connection via TCP/IP sockets on RPi?

2023-11-04 Thread Bo Berglund via fpc-pascal
On Fri, 03 Nov 2023 19:47:01 +0100, Bo Berglund via fpc-pascal wrote: >I have now found that there is a Linux utility named socat, which apparently is >able to map a serial port to a network socket server: > >https://www.acmesystems.it/socat > >Here they actually use ser2net as

Re: [fpc-pascal] Serial connection via TCP/IP sockets on RPi?

2023-11-03 Thread Bo Berglund via fpc-pascal
On Fri, 03 Nov 2023 17:34:09 +0100, Bo Berglund via fpc-pascal wrote: >So ser2net seems like a logical use given that the RPi3 is already there >connected by wire to the serial line and is available via VPN on the network. I >have just checked (using PuTTY via VPN) that the RPi3 doe

Re: [fpc-pascal] Serial connection via TCP/IP sockets on RPi?

2023-11-03 Thread Bo Berglund via fpc-pascal
t can, I use that for subversion commits) and on which I install ser2net too but as a client and I now have a serial port to hook my Windows system into... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Serial connection via TCP/IP sockets on RPi?

2023-11-03 Thread Bo Berglund via fpc-pascal
project that implements my wanted functionality? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Why does RunCommand not produce the correct output?

2023-05-02 Thread Bo Berglund via fpc-pascal
On Mon, 01 May 2023 11:00:56 -0400, Bo Berglund via fpc-pascal wrote: >I am trying to create a function to list the available serial ports on a Linux >device. But I have trouble getting commands which work on a terminal to also >work when run from my console program. > >When I ru

Re: [fpc-pascal] Why does RunCommand not produce the correct output?

2023-05-01 Thread Bo Berglund via fpc-pascal
unctionality. Of course I *could* call the script from the program but I wanted it all be within the FPC program itself... But it can be done by calling the standalone script file of course... -- Bo Berglund Developer in Sweden ___ fpc-pascal ma

[fpc-pascal] Why does RunCommand not produce the correct output?

2023-05-01 Thread Bo Berglund via fpc-pascal
ns just fine and prints the data on screen. But I need the function in order to populate a control with the output inside a GUI program once thus function works. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to use StrToDateTime() to convert a string with no delimiters?

2023-04-25 Thread Bo Berglund via fpc-pascal
w I can just specify the pattern of data to be scanned using the y, m, h, n and s letters. But I am adding 20 on front of the telegram value because that uses only a 2-digit year and I had problems on my new RPiZero until I added the two yy in front of the pattern making it a 4-char year and th

[fpc-pascal] How to use StrToDateTime() to convert a string with no delimiters?

2023-04-24 Thread Bo Berglund via fpc-pascal
time part, after all I separated the two with a space and set the same separators? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is there a Pos() function for TBytes?

2023-04-20 Thread Bo Berglund via fpc-pascal
n begin res := -1; break; end; end; if res >= 0 then break; end; end; Result := res; end; function PosInBytes(const Pattern: byte; Target: TBytes): integer; var i: integer; begin Result := -1; for i := 0 to Length(Target) - 1 d

[fpc-pascal] Is there a Pos() function for TBytes?

2023-04-19 Thread Bo Berglund via fpc-pascal
e TBytes?), but for Pos() there is only string... And Insert seems to have a limit of 255 elements, why? What I need is a Pos(token) for TBytes where the token can be a single or multiple bytes in size (just like for strings). Is there such a thing? -- Bo Berglund Deve

Re: [fpc-pascal] Declaring an array as var or not in function calls?

2023-04-12 Thread Bo Berglund via fpc-pascal
On Thu, 13 Apr 2023 00:06:16 +0200, Sven Barth via fpc-pascal wrote: >Bo Berglund via fpc-pascal schrieb am >Mi., 12. Apr. 2023, 21:17: > >> Now my question: >> >> Since I am modifying the WArgs variable inside the BuildArgumentsArray >> f

[fpc-pascal] Declaring an array as var or not in function calls?

2023-04-12 Thread Bo Berglund via fpc-pascal
deal here, is this kind of variable written to inside a called function not needing to be set as var and it will work anyway? And if so, what is the rule for *when* to use var in function call argument lists for items that will be changed inside the called function and used afterwards? -- Bo

Re: [fpc-pascal] Building trunk of today fails on Windows: Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size

2023-04-08 Thread Bo Berglund via fpc-pascal
ich it also successfully completed. The base install took 19m30s and the cross another 5 minutes when it fetched the various source files from the Internet. And the new cross-compiler actually works to build applications for RaspberryPi on Widows10! :-) And Win64 applications from this 32 bit inst

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-05 Thread Bo Berglund via fpc-pascal
to i2c.pas! Now I will continue by handling the case of write page overlaps so it will be dealt with in the code! ;-) -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-05 Thread Bo Berglund via fpc-pascal
27;Not yet implmented data split into several writes'); end; finally i2cMaster.Free; end; -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-04 Thread Bo Berglund via fpc-pascal
On Wed, 05 Apr 2023 00:33:50 +0200, Bo Berglund via fpc-pascal wrote: >On Tue, 4 Apr 2023 23:43:21 +0200, Christo Crause via fpc-pascal > wrote: > > >>Is your startaddress variable an unsigned 16 bit integer >>(word/uint16)? If not, type cast this to a uint16 to ensure

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-04 Thread Bo Berglund via fpc-pascal
te any errors but nothing winds up into the EEPROM... Note: I have not changed anything inside the i2c.pas file... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-04 Thread Bo Berglund via fpc-pascal
On Sun, 02 Apr 2023 23:21:38 +0200, Bo Berglund via fpc-pascal wrote: >On Sun, 2 Apr 2023 23:14:25 +0200, Christo Crause via fpc-pascal > wrote: > >>On Sun, Apr 2, 2023 at 9:30?PM Bo Berglund via fpc-pascal < >>fpc-pascal@lists.freepascal.org> wrote: >> >&

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-03 Thread Bo Berglund via fpc-pascal
On Mon, 03 Apr 2023 15:09:38 -0400, Dennis Lee Bieber via fpc-pascal wrote: >On Mon, 03 Apr 2023 20:55:43 +0200, Bo Berglund via fpc-pascal > declaimed >the following: > >>I just tested by writing four 0x00 bytes in a row, then verifying that the >>memory read shows t

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-03 Thread Bo Berglund via fpc-pascal
finalize with a short page at the end of the write procedure. Unless everything happens to align on 64 byte address boundaries... Getting a bit dizzy... But still the main Freepascal interface into Linux that I got from GitHub works so this is just a case of sequencing the commands correctly! :-) Tha

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-03 Thread Bo Berglund via fpc-pascal
On Mon, 03 Apr 2023 20:55:43 +0200, Bo Berglund via fpc-pascal >On Mon, 3 Apr 2023 14:26:17 -0400, "Jeffrey A. Wormsley via fpc-pascal" > wrote: > >>I've been using i2c and SPI eeproms for almost two decades. All of them >>can read/write a single byte if

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-03 Thread Bo Berglund via fpc-pascal
>On Mon, Apr 3, 2023 at 10:53?AM Bo Berglund via fpc-pascal < >fpc-pascal@lists.freepascal.org> wrote: > >> On Mon, 3 Apr 2023 08:42:12 -0400, "Jeffrey A. Wormsley via fpc-pascal" >> wrote: >> >> >> >> >> i2c_read_re

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-03 Thread Bo Berglund via fpc-pascal
about might be certain microcontrollers which simulate an EEPROM memory in their flash program memory data. That flash is commonly erasable only for full pages. Not the case here... I am working on using the FreePascal GitHub code and expanding it into a class I can use in my RPi4 project. Since I

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-02 Thread Bo Berglund via fpc-pascal
On Sun, 2 Apr 2023 23:14:25 +0200, Christo Crause via fpc-pascal wrote: >On Sun, Apr 2, 2023 at 9:30?PM Bo Berglund via fpc-pascal < >fpc-pascal@lists.freepascal.org> wrote: > >> Is there a reason that there is no i2c_write_reg demo in the github >> package? >>

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-02 Thread Bo Berglund via fpc-pascal
On Sun, 02 Apr 2023 15:07:48 -0400, Dennis Lee Bieber via fpc-pascal wrote: >On Sun, 02 Apr 2023 16:16:46 +0200, Bo Berglund via fpc-pascal > declaimed >the following: > > >> >> >>Byte Write >

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-02 Thread Bo Berglund via fpc-pascal
On Sun, 2 Apr 2023 07:31:43 +0200, Christo Crause via fpc-pascal wrote: >On Sat, Apr 1, 2023 at 9:57?PM Bo Berglund via fpc-pascal < >fpc-pascal@lists.freepascal.org> wrote: > >> Question: >> Can I use Linux file system commands to read/write the data on the i2c >&g

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-02 Thread Bo Berglund via fpc-pascal
On Sun, 02 Apr 2023 10:23:24 +0200, Bo Berglund via fpc-pascal wrote: >On Sun, 2 Apr 2023 07:31:43 +0200, Christo Crause via fpc-pascal > wrote: > >>On Sat, Apr 1, 2023 at 9:57?PM Bo Berglund via fpc-pascal < >>fpc-pascal@lists.freepascal.org> wrote: >> >&

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-02 Thread Bo Berglund via fpc-pascal
On Sun, 2 Apr 2023 07:31:43 +0200, Christo Crause via fpc-pascal wrote: >On Sat, Apr 1, 2023 at 9:57?PM Bo Berglund via fpc-pascal < >fpc-pascal@lists.freepascal.org> wrote: > >> Question: >> Can I use Linux file system commands to read/write the data on the i2c >&g

Re: [fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-02 Thread Bo Berglund via fpc-pascal
is dilemma (last page of 16) : https://forums.raspberrypi.com/viewtopic.php?p=2095696#p2095696 And here is the PiLocator, which tries to keep track of where there are actual devices to buy: https://rpilocator.com/ Except it seems like it is off-line right now, it worked a week ago when I

[fpc-pascal] FPC/Lazarus on RPi4 - How to read/write I2C connected EEPROM?

2023-04-01 Thread Bo Berglund via fpc-pascal
versions of Lazarus and Fpc on the RPi4 itself. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Converting Delphi7 code to FreePascal with interfacing to protection key?

2023-03-30 Thread Bo Berglund via fpc-pascal
On Thu, 30 Mar 2023 10:02:49 +0200, Tomas Hajny via fpc-pascal wrote: >On 30 March 2023 9:36:35 +0200, Marco van de Voort via fpc-pascal > wrote: >>On 30-3-2023 07:38, Bo Berglund via fpc-pascal wrote: >>> The problem seems to be that neither is a valid COFF file acc

Re: [fpc-pascal] Converting Delphi7 code to FreePascal with interfacing to protection key?

2023-03-29 Thread Bo Berglund via fpc-pascal
rocessor (I have installed the 32 bit cross compiler found at SourceForge for this). https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%202.2.6/ -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist -

Re: [fpc-pascal] Converting Delphi7 code to FreePascal with interfacing to protection key?

2023-03-29 Thread Bo Berglund via fpc-pascal
an be opened in Delphi7 using the supplied obj file and if it works there, how do I proceed? TIA -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Fpc 3.2.2 fails to "make install" on RPi4 to local directory

2023-03-28 Thread Bo Berglund via fpc-pascal
On Tue, 28 Mar 2023 13:47:30 +0200, Marco van de Voort via fpc-pascal wrote: > >On 28-3-2023 13:43, Bo Berglund via fpc-pascal wrote: >> make install prefix="$HOME" FPC="$HOME/dev/fpc/3.2.2/compiler/ppcarm" > >It is install_prefix= not install prefix=  iow,

[fpc-pascal] Fpc 3.2.2 fails to "make install" on RPi4 to local directory

2023-03-28 Thread Bo Berglund via fpc-pascal
fpcversion/units/$fpctarget -Fu/home/pi/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/home/pi/lib/fpc/$fpcversion/units/$fpctarget/rtl Is this a new behaviour for Fpc 3.2.2 different from that of Fpc 3.2.0 where it did not happen??? If not, what could have happened and in both cases how do I fix it?

Re: [fpc-pascal] Cross-compile for Linux Arm (RaspberryPi) on Windows 10?

2023-03-25 Thread Bo Berglund via fpc-pascal
On Sat, 25 Mar 2023 23:25:07 +0100, Bo Berglund via fpc-pascal wrote: >I have latest Lazarus/Fpc on my Windows 10 main computer, but also on a number >of RaspberryPi (3 and 4) devices. If I create an application on Windows and >want >to build the same for RPi, then I have to

[fpc-pascal] Cross-compile for Linux Arm (RaspberryPi) on Windows 10?

2023-03-25 Thread Bo Berglund via fpc-pascal
... So is there some up-to-date article describing it? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is Online Package Manager not a standard part of Lazarus?

2023-03-24 Thread Bo Berglund via fpc-pascal
On Fri, 24 Mar 2023 22:20:15 +0100, Bo Berglund via fpc-pascal wrote: >I thought Online Package Manager was standard since it appeared in all earlier >installs I have made both using Sourceforge Windows installers or via sources >downloaded with SVN or Git and building on Linux. >

[fpc-pascal] Is Online Package Manager not a standard part of Lazarus?

2023-03-24 Thread Bo Berglund via fpc-pascal
wanted to complete the install using OLPM to get a few packages I am always installing including Indy, that was missing in the Package menu! Is it intentionally removed by the fpcupdeluxe developers? Or do I just not know how to handle the fpcupdeluxe installer? -- Bo Berglund Developer in Sweden

Re: [fpc-pascal] Downloaded cross-compiler from Sourceforge - wiki incorrect?

2023-03-23 Thread Bo Berglund via fpc-pascal
On Fri, 24 Mar 2023 07:38:30 +0100, Bo Berglund via fpc-pascal wrote: >On Thu, 23 Mar 2023 09:47:36 +0100, Martin Frb via fpc-pascal > wrote: > >>On 23/03/2023 09:25, Bo Berglund via fpc-pascal wrote: >>> >>> Then opened Lazarus 2.2.4 with my project and chang

Re: [fpc-pascal] Downloaded cross-compiler from Sourceforge - wiki incorrect?

2023-03-23 Thread Bo Berglund via fpc-pascal
On Thu, 23 Mar 2023 09:47:36 +0100, Martin Frb via fpc-pascal wrote: >On 23/03/2023 09:25, Bo Berglund via fpc-pascal wrote: >> >> Then opened Lazarus 2.2.4 with my project and changed project options as >> follows: >> >> Compiler_Options/Config_and_Target/Targ

Re: [fpc-pascal] Converting Delphi7 code to FreePascal with interfacing to protection key?

2023-03-23 Thread Bo Berglund via fpc-pascal
On Wed, 22 Mar 2023 13:56:59 +0100, Bo Berglund via fpc-pascal wrote: >On Wed, 22 Mar 2023 12:33:16 +0100, Giuliano Colla via fpc-pascal > wrote: > >>Il 22/03/2023 11:18, Bo Berglund via fpc-pascal ha scritto: >> >>> If I have fpc 3.2.2 inbstalled on Windows

[fpc-pascal] Downloaded cross-compiler from Sourceforge - wiki incorrect?

2023-03-23 Thread Bo Berglund via fpc-pascal
I must have done something seriously wrong... Or could the problem be that Windows Defender has blocked all exe files from being installed? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Converting Delphi7 code to FreePascal with interfacing to protection key?

2023-03-22 Thread Bo Berglund via fpc-pascal
On Wed, 22 Mar 2023 12:33:16 +0100, Giuliano Colla via fpc-pascal wrote: >Il 22/03/2023 11:18, Bo Berglund via fpc-pascal ha scritto: > >> If I have fpc 3.2.2 inbstalled on Windows 10 x64 I assume it is a 64 bit >> target >> exe which will be the output, right? >If i

Re: [fpc-pascal] Converting Delphi7 code to FreePascal with interfacing to protection key?

2023-03-22 Thread Bo Berglund via fpc-pascal
On Wed, 22 Mar 2023 12:33:16 +0100, Giuliano Colla via fpc-pascal wrote: >Il 22/03/2023 11:18, Bo Berglund via fpc-pascal ha scritto: > >> If I have fpc 3.2.2 inbstalled on Windows 10 x64 I assume it is a 64 bit >> target >> exe which will be the output, right? >If i

Re: [fpc-pascal] Converting Delphi7 code to FreePascal with interfacing to protection key?

2023-03-22 Thread Bo Berglund via fpc-pascal
On Wed, 22 Mar 2023 11:18:10 +0100, Bo Berglund via fpc-pascal wrote: > >I guess I have to just create a simple program which reads the key data and >does >nothing else to check if the handling will actually work... >Or convert a small tool we already have from Delphi7 to Laza

Re: [fpc-pascal] Converting Delphi7 code to FreePascal with interfacing to protection key?

2023-03-22 Thread Bo Berglund via fpc-pascal
On Wed, 22 Mar 2023 08:01:57 +0100, Sven Barth via fpc-pascal wrote: >Bo Berglund via fpc-pascal schrieb am >Di., 21. März 2023, 23:54: > >> 1) How should I go about translating the above to current FreePascal >> syntax? >> >> This involves: >>

Re: [fpc-pascal] Converting Delphi7 code to FreePascal with interfacing to protection key?

2023-03-22 Thread Bo Berglund via fpc-pascal
ere was not much for Delphi and none for FreePascal. There really should be some generic interface to use independent of dev environment nowadays when there are so many systems in use (C-sharp, C++, Python etc etc). I will have to open a support ticket. -- Bo Berglund Developer in Swe

[fpc-pascal] Converting Delphi7 code to FreePascal with interfacing to protection key?

2023-03-21 Thread Bo Berglund via fpc-pascal
r a 64 bit fpc compiler? It is the interface to the protection key driver on the Windows system... It does work for our 32 bit Delphi7 programs on Windows 10 x64, so there must be some 32<->64 bit handling in Windows maybe? -- Bo Berglund Develop

Re: [fpc-pascal] Calculating CRC16?

2022-10-25 Thread Bo Berglund via fpc-pascal
On Tue, 25 Oct 2022 08:30:19 +0200, Bo Berglund via fpc-pascal wrote: >I am working on a handler for IoT data from an electricity meter which >communicates via TTL serial at 115200 baud. It only sends data in packets of >less than 1 kbytes every 5-10 seconds. > >In order to vali

[fpc-pascal] Calculating CRC16?

2022-10-24 Thread Bo Berglund via fpc-pascal
bscrc Anyone able to help with FPC implementation? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MQTT package for freepascal/lazarus?

2022-10-23 Thread Bo Berglund via fpc-pascal
if no messages are sent, i.e. no carriage-return coming along? AFAIK readln is blocking, right? I will try things out tomorrow, it's midnight now... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MQTT package for freepascal/lazarus?

2022-10-23 Thread Bo Berglund via fpc-pascal
On Sun, 23 Oct 2022 11:51:31 +0200, Bo Berglund via fpc-pascal wrote: >TESTING. >No it does not work! >The mosquitto output cannot be redirected like this because it seems to be >printed to an output screen which is not redirectable... >All that happens is that an empty fil

Re: [fpc-pascal] MQTT package for freepascal/lazarus?

2022-10-23 Thread Bo Berglund via fpc-pascal
On Sun, 23 Oct 2022 05:19:24 +0200, Jean SUZINEAU via fpc-pascal wrote: >Le 22/10/2022 à 23:37, Bo Berglund via fpc-pascal a écrit : >> If I could get at each output that mosquitto_cli writes into a script or such >> then I would be good to go. >Maybe with a redirection ( >

Re: [fpc-pascal] MQTT package for freepascal/lazarus?

2022-10-22 Thread Bo Berglund via fpc-pascal
and do something other than wayching the screen? If I could get at each output that mosquitto_cli writes into a script or such then I would be good to go. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] MQTT package for freepascal/lazarus?

2022-10-20 Thread Bo Berglund via fpc-pascal
On Thu, 20 Oct 2022 11:11:17 +0200, Bo Berglund via fpc-pascal wrote: >On Tue, 11 Oct 2022 19:42:26 +0200 (CEST), Karoly Balogh via fpc-pascal > wrote: > >>Hi, >> >>On Tue, 11 Oct 2022, Bo Berglund via fpc-pascal wrote: >> >>> I am looking for a pascal

Re: [fpc-pascal] MQTT package for freepascal/lazarus?

2022-10-20 Thread Bo Berglund via fpc-pascal
On Tue, 11 Oct 2022 19:42:26 +0200 (CEST), Karoly Balogh via fpc-pascal wrote: >Hi, > >On Tue, 11 Oct 2022, Bo Berglund via fpc-pascal wrote: > >> I am looking for a pascal implementation of the MQTT protocol. >> I could not find anything inside Lazarus' OnLineP

[fpc-pascal] MQTT package for freepascal/lazarus?

2022-10-11 Thread Bo Berglund via fpc-pascal
I am looking for a pascal implementation of the MQTT protocol. I could not find anything inside Lazarus' OnLinePackageManager. Is there something like that available? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Are there any drawbacks to "reference to"?

2022-06-06 Thread Bo Berglund via fpc-pascal
scussions for easy reference - Any such blockades you describe are non-existent Point your news reader to news.gmane.io and subscribe to: gmane.comp.compilers.free-pascal.general gmane.comp.ide.lazarus.general gmane.comp.compilers.free-pascal.devel -- Bo Berglund D

Re: [fpc-pascal] Where can I find working code for xidel and dependencies

2022-01-09 Thread Bo Berglund via fpc-pascal
On Sun, 09 Jan 2022 17:46:00 +0100, Bo Berglund via fpc-pascal wrote: >I have been adviced to use xidel to analyze the content of websites, so when >searcing for it I found that it is a FreePascal utility with the sources on >GitHub. >https://www.videlibri.de/xidel.html >So I

[fpc-pascal] Where can I find working code for xidel and dependencies

2022-01-09 Thread Bo Berglund via fpc-pascal
ncodeHex" is deprecated xquery.internals.common.pas(434,80) Fatal: Cannot find PasDblStrUtils used by xquery.internals.common of package internettools. Has anyone here successfully managed to build xidel, if so what is the recepy? -- Bo Berglund Developer in Sweden

Re: [fpc-pascal] Is there a range limitation for the in operator?

2021-12-22 Thread Bo Berglund via fpc-pascal
On Wed, 22 Dec 2021 17:07:55 +0100, Sven Barth via fpc-pascal wrote: >Bo Berglund via fpc-pascal schrieb am >Mi., 22. Dez. 2021, 16:08: > >> So I wonder if there is a value range limitation for the arguments inside >> an in >> command like: >> if a in [x..y] th

[fpc-pascal] Is there a range limitation for the in operator?

2021-12-22 Thread Bo Berglund via fpc-pascal
r < (strtCmds + sizCmds)) then Where I previously have done this: strtCmds := strtElecs + sizGeos; Now it works as planned So I wonder if there is a value range limitation for the arguments inside an in command like: if a in [x..y] then ??? -- Bo Berglund Dev

Re: [fpc-pascal] Building fpc 3.2.2 from sources - which compiler to use for install?

2021-12-06 Thread Bo Berglund via fpc-pascal
On Mon, 6 Dec 2021 13:29:31 +0100, Marco van de Voort via fpc-pascal wrote: > >Op 6-12-2021 om 12:53 schreef Bo Berglund via fpc-pascal: >> >> >> I.e. should I use the newly compiled 3.2.2 in this step or the seed compiler, >> which is the previous version? >

[fpc-pascal] Building fpc 3.2.2 from sources - which compiler to use for install?

2021-12-06 Thread Bo Berglund via fpc-pascal
next step and here I am unsure which FPC to specify: make install PREFIX="$HOME" FPC="$HOME/devel/fpc/ppcx64" or make install PREFIX="$HOME" FPC="$HOME/devel/fpc/3.2.2/compiler/ppcx64" I.e. should I use the newly compiled 3.2.2 in this step or the seed

Re: [fpc-pascal] Make clean error when building fpc 3.2.2 from sources

2021-11-22 Thread Bo Berglund via fpc-pascal
On Mon, 22 Nov 2021 16:47:29 +0100, Tomas Hajny via fpc-pascal wrote: >On 2021-11-22 16:21, Jonas Maebe via fpc-pascal wrote: >> On 22/11/2021 16:02, Bo Berglund via fpc-pascal wrote: >>> This is what happens when I execute the first make command inside the >

[fpc-pascal] Make clean error when building fpc 3.2.2 from sources

2021-11-22 Thread Bo Berglund via fpc-pascal
installed on this Ubuntu machine. Where do I go from here? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-28 Thread Bo Berglund via fpc-pascal
ven model as a whole... As long as it does not eat up more than 10% or so CPU I might have to swallow it. And maybe schedule a regular restart of the server to clear whatever builds up. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-17 Thread Bo Berglund via fpc-pascal
itching on scheduling - during a task execution - after task execution So there will be a lot of data gathering to see what changes, but since I did not know about strace and it seems able to do this it might actually work. Thanks for pointing me towards it! -- Bo Berglund Develo

Re: [fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-17 Thread Bo Berglund via fpc-pascal
On Sun, 17 Oct 2021 00:43:51 +0200, Bo Berglund via fpc-pascal wrote: >timeout --signal=2 3s strace -f -c -p 488 -o tracelog2.log > >% time seconds usecs/call callserrors syscall >-- --- --- - - > 46.470.348

Re: [fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-16 Thread Bo Berglund via fpc-pascal
On Sat, 16 Oct 2021 18:16:57 -0400, Travis Siegel via fpc-pascal wrote: > >On 10/16/2021 6:06 PM, Bo Berglund via fpc-pascal wrote: >> Meanwhile the strace outputs stuff like this to the screen: >> strace: Process 6360 attached >> strace: Process 6361 attached >>

Re: [fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-16 Thread Bo Berglund via fpc-pascal
strace: Process 6366 attached strace: Process 6367 attached strace: Process 6368 attached strace: Process 6369 attached strace: Process 6370 attached strace: Process 6371 attached strace: Process 6372 attached I don't understand what this means either -- Bo Berglund Developer in Sw

Re: [fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-07 Thread Bo Berglund via fpc-pascal
gets below after that. No matter how long I wait it is now stuck at that double value. So clearly something must be left behind after the task has finished... The question is: how to find what is still using CPU? -- Bo Berglund Developer in Sweden ___ f

  1   2   3   4   5   6   >