On Tue, 28 Feb 2017 16:34:45 +, Paulo Costa via Lazarus
wrote:
>I'm using Lazarus on a Raspberry Pi 3.
>I have tested a few ways to get it working but the best one seems to be
>Bo Berglund's script and starting compiler. (Thanks)
>
>I had just one problem with
On Sun, 30 Oct 2016 00:05:02 -0700 (MST), Ken Kashmarek via Lazarus
wrote:
>On RPi3 (output from ls -l):
> SIZE
>-rwxr-xr-x 1 pi pi 408892 Oct 29 07:47 hello
>-rw-r--r-- 1 pi pi12876 Oct 29 07:47 hello.o
>-rw-r- 1 pi pi
On Tue, 10 Jan 2017 11:14:51 +0100, Mattias Gaertner via Lazarus
wrote:
>> For example there is no fpc.cfg file anywhere on my system, should it
>> not have appeared when fpc was built?
>
>No. You have to create it yourself. For example with the tool samplecfg.
I don't know if this is a known problem or if there are solutions to
it, but here goes:
I have just completed installing Lazarus 1.6.2 and FPC 3.0.0 on a
pristine Raspbian PIXEL operating system running on an RPi3.
When Lazarus starts up the first time the usual dialog about the fpc
sources pops
I am trying to build an FPC 3.0.0 + Lazarus 1.6.2 environment on a new
Rpi3 with the latest Raspbian PIXEL.
I have come so far as to having compiled fpc 3.0.0 successfully and
run its make install command to put the binaries in the expected
places (all under /home/pi):
Now when I try to build
On Tue, 10 Jan 2017 13:52:05 +1300, Gordon Findlay via Lazarus
wrote:
>I've had that issue, with different units, under Linux several times. A
>make clean before make bigide has solved the problem.
>
Well, in my case there was nothing to clean out since the source
On Sun, 4 Dec 2016 18:39:21 -0500, Donald Ziesig via Lazarus
wrote:
>Now that I have Lazarus 1.6.2 working :-D, I have a few questions:
>
>Is there any way to resize the IDE main window so that it extends the
>full width of the display? Right now it only extends
On Tue, 10 Jan 2017 17:34:29 +0100, Bo Berglund via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>The main IDE bar on top of the screen only reaches about 60% of the
>width of the screen and there is no way to resize it using the mouse.
>The other Lazarus windows are resizable in
On Wed, 11 Jan 2017 11:23:23 +0100, Bo Berglund via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>It is extremely annoying that the main window on top cannot be
>resized, not to a wider size extending the width of the screen nor to
>a smaller size if need be.
>
>Why was
On Tue, 13 Dec 2016 16:22:18 +0100, Tomá Emresz via Lazarus
wrote:
Is there really already Lazarus 1.6.3?
1.6.2 was just released Nov 15, 2016
--
Bo Berglund
Developer in Sweden
--
___
Lazarus mailing list
On Tue, 28 Feb 2017 23:06:33 +, Paulo Costa via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>On 28-Feb-17 22:53, Bo Berglund via Lazarus wrote:
>
>...
>
>>> I'm using Raspbian version 8.0
>>> Linux raspberrypi 4.4.38-v7+
>>
>> What co
On Wed, 1 Mar 2017 14:05:07 +0100, Mattias Gaertner via Lazarus
wrote:
>The Lazarus team is glad to announce the release of Lazarus 1.6.4. This
>is a bugfix release.
>
>This release was built with FPC 3.0.2.
Can it be built with some other FPC version, like 3.0
On Tue, 15 Aug 2017 21:22:10 +0200, Luca Olivetti via Lazarus
wrote:
>(I remarked the "if" because I don't know if that's the case, according
>to Bo Berglund's experience it is)
Just to expand on my "experience" and the reason I posted:
My work on converting the
On Sun, 13 Aug 2017 14:18:23 +0300, Juha Manninen via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>On Sun, Aug 13, 2017 at 1:21 AM, Bo Berglund via Lazarus
><lazarus@lists.lazarus-ide.org> wrote:
>> I recently had a problem with an application that was converted
On Thu, 10 Aug 2017 22:33:50 -0500, R0b0t1 via Lazarus
wrote:
>The forums are far more active, and the developers seem to be fairly
>active on the forums if you need a response quickly.
Is there an NNTP interface (News) for the forums?
I find the NNTP interface
I downloaded the LNet 0.6.5 zipfile from:
https://sourceforge.net/projects/lazarus-ccr/files/lNet/lNet%200.6.5/lnet-0.6.5.zip/download
I extracted it into a folder on my Win7 PC and then I started Lazarus
1.6 and went to Packages/Open Package File, navigated to the LNet
folder and selected the
I need to make the Lazarus debugger ignore exceptions (not stop on
them), which is possible in Delphi (do not stop on language
exceptions).
How can I configure Lazarus to do the same?
I have a tight loop including reading an Indy TCP client socket
waiting for incoming data and I have put a
On Sat, 24 Jun 2017 00:14:42 +0200, Bo Berglund via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>I need to make the Lazarus debugger ignore exceptions (not stop on
>them), which is possible in Delphi (do not stop on language
>exceptions).
>How can I configure Lazarus to do th
On Thu, 25 May 2017 18:46:43 +0200, Joe via Lazarus
wrote:
>I am trying to test Lazarus 1.8 RC1 (and following versions) under
>Raspbian Jessie with PIXEL.
>But unfortunately I could not find any instructions or scripts helping
>to install *this* RC.
>Any hint?
On Fri, 26 May 2017 13:29:50 +, Mark Morgan Lloyd via Lazarus
wrote:
>
>Just to check the "standard way of doing it" in case there's any
>surprises, with FPC 3.0.2 installed:
>
>svn co http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_0_RC1
>cd
On Fri, 26 May 2017 15:52:06 +, Mark Morgan Lloyd via Lazarus
wrote:
>My apologies, but since you hadn't tested it for the current RC I
>assumed you'd abandoned it.
No apology needed!
It's just that I have 6 RPi:s running at home for different purposes
and
On Sat, 20 May 2017 12:24:01 +0200, Giuliano Colla via Lazarus
wrote:
>...would stop the complaints about "long executable".
How about strip -s as a post-compile step before shipping?
--
Bo Berglund
Developer in Sweden
--
On Sat, 27 May 2017 11:20:17 +0200, Joe via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>Am 26.05.2017 um 13:02 schrieb Bo Berglund via Lazarus:
>> You could try my script for installation of FPC + Lazarus on an RPi3.
>> http://blog.boberglund.com/install_lazfpc_local
I just want to check with you which way is safer when using Move()
commands in a procedure to combine two TBytes arrays by inserting one
into the other at a specified point.
What I need to do is the following:
- Increase the size of the Dest array by the length of the Src array
- Move the data
On Wed, 30 Aug 2017 09:48:47 +0200 (CEST), Michael Van Canneyt via
Lazarus wrote:
>> I must use Move() for handling other data of various kinds like packed
>> records and such too...
>
>If the packed records contain managed data (ansistrings and the like):
>Don't
On Sun, 3 Dec 2017 23:34:39 +0100, Teresa Williams via Lazarus
wrote:
>> So,
>> can someone here please tell me where I should find the fpc.cfg file.
>> When Lazarus 1.6 starts up it complains about not finding it and
>> suggest that I should point it to the file.
I tried to find where the fpc.cfg file is located on my Raspbian
Jessie system. So I googled and found a number of hits all located on
the lazarus forum.
But whatever item I select there is a timeout and it does not
appear...
For example this:
https://forum.lazarus.freepascal.org/index.php
and all
On Sat, 16 Dec 2017 22:16:11 +0100, Bo Berglund via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>Compile package indylaz 10.6.2: Exit code 1, Errors: 2
>IdGlobal.pas(1405,14) Error: Identifier not found "Windows"
>IdGlobal.pas(1405,30) Error: Illegal expression
>
T
On Mon, 4 Dec 2017 09:52:34 +0100, Mattias Gaertner via Lazarus
wrote:
>A normal fpc install puts it in /etc/fpc.cfg
Thanks, that is where I found it now!
I wonder why this did not work before?
sudo find / -name fpc.cfg
Now it does.
Anyway, I could not see
On Mon, 4 Dec 2017 10:16:04 +0100, Marc Weustink via Lazarus
wrote:
>> https://forum.lazarus.freepascal.org/index.php
>> and all othergoogle hits targeting specific posts all time out.
>> And using the Google cahched page does not show it either.
>
>No problem in
On Mon, 04 Dec 2017 11:04:16 +0100, Bo Berglund via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>It seems like my fiber ISP is blocking the lazarus forums
>I need to talk to them.
Not the case!
I looked at my ASUS router and it flashed an alert about new firmware,
which
On Mon, 4 Dec 2017 10:44:02 +0100, Mattias Gaertner via Lazarus
wrote:
>Then you should create a /home/pi/.fpc.cfg
I used the script commands for the fpc.cfg:
/home/pi/lib/fpc/3.0.2/samplecfg /home/pi/lib/fpc/3.0.2 /home/pi
Followed by
mv /home/pi/fpc.cfg
On Tue, 5 Dec 2017 12:25:43 +0100, Mattias Gaertner via Lazarus
wrote:
>> Question:
>> Do I need a different seed compiler than 3.0.0 for the latest fpc?
>
>Building 3.1.1 needs 3.0.4.
>Building 3.0.4 needs 3.0.2.
Well,
on my RPi3 I used my installation script,
On Sat, 12 May 2018 01:18:31 +0100, Graeme Geldenhuys via Lazarus
wrote:
>Indy rocks!!!
+1
And additionally the support available at the Indy forum is very good!
https://www.atozed.com/forums/forumdisplay.php?fid=9
If you ask sensible questions you *will* get
On Sat, 9 Jun 2018 11:27:11 +0200, Werner Pamler via Lazarus
wrote:
>> Did I start this new package in the wrong way? I simply used
>> Package/NewPackage to bring up the dialogs
>
>I think this is correct. I converted a lot of Delphi packages this way,
>without the converter - it gives me
On Fri, 08 Jun 2018 20:08:02 +0200, Bo Berglund via Lazarus
wrote:
>On every line mentioning CustomSort there is an error:
>Error: Identifier not found "CustomSort"
>
>CustomSort is an identifier in the parent TListView unless I am
>mistaken. This error never appeared
begin 644 comctrls.pp.patch.zip
M4$L#!!0``@`(`#U0RDR:L"0LT!```18V]M8W1R;',N<'`N<&%T
M8VAUD%L+@D`0A=\#_\,\*OC0FI=4"DP0A""AJ,=8;"M!75G'_]]L91>HE[/+
M0
M;#IMX'7!%6\B*%#E+5H1D(J+4-#CJ>1U'1L3-IL3:!8RF\1YT`"R=.A1-ENI
M\)@1+OIH$/\R?8%TK.L%G+D^&\V=DJ4X#32`]A\JO-Z_]&;RC!TQ-(1V/%\M
When converting components to Lazarus (see separate thread) I have
encountered a problem for a component that interfaces to a software
protection dongle.
My component files (pas) need to reference a unit + an obj file from
the dongle maker. In the maker's pas file is this:
IMPLEMENTATION
USES
On Sun, 10 Jun 2018 09:54:34 +0200, Bo Berglund via Lazarus
wrote:
>With Werner's help I edited the comctrl.pp and comctrl.inc files to
Sory, typo!
I actually edited the comctrls.pp and customlistview.inc files!
--
Bo Berglund
Developer in Swe
On Sun, 10 Jun 2018 09:56:48 +0200, Bo Berglund via Lazarus
wrote:
>On Sun, 10 Jun 2018 09:54:34 +0200, Bo Berglund via Lazarus
> wrote:
>
>>With Werner's help I edited the comctrl.pp and comctrl.inc files to
>
>Sorry, typo!
>I actually edited the comctrls.pp and custom
On Sat, 9 Jun 2018 19:08:23 +0200, Werner Pamler via Lazarus
wrote:
>Is this MustangPeak's EasyListView
>https://github.com/TurboPack/MustangpeakEasyListview)? I was trying to
>convert it myself, but did not even get this far. I got lost in the
>dependence on another package which did not
On Sat, 9 Jun 2018 11:39:28 +0200, Mattias Gaertner via Lazarus
wrote:
>On Fri, 08 Jun 2018 20:08:02 +0200
>Bo Berglund via Lazarus wrote:
>
>>[...]
>> Then I tried compiling and for the first few components all I had to
>> do was add an {$IFDEF DELPHI} bracket
On Sat, 09 Jun 2018 17:19:01 +0200, Bo Berglund via Lazarus
wrote:
>The CustomSort it complains about might exist in a used unit in Delphi
>but not in Lazarus for example?
I opened Delphi 2007 and dropped an EasyListview object onto the form
so I could trace this CustomSort method.
If
On Sun, 10 Jun 2018 12:58:42 +0200, Mattias Gaertner via Lazarus
wrote:
>Your package must inherit an object search path.
>
>Package editor / Options / Package Options / Add path to dependent
>packages / Object
>
>Add '$(PkgDir)' without quotes.
>
I did this literally as you wrote. So my
As part of an effort to port a Delphi program to FPC/Lazarus I have
tried to install a custom package of components we use with Delphi
from D7 to XE5 into Lazarus 1.8.4 win32.
I started by using the menu function:
Tool/Delphi Conversion/Convert Delphi Package
After navigating to the dpk file in
On Fri, 8 Jun 2018 10:44:11 +0200, Ondrej Pokorny via Lazarus
wrote:
>Yes, of course. But if you want to build both 64bit and 32bit programs,
>you'll be better off with a cross compiling solution.
>
Does this mean for example using Lazarus 1.8.4 win64 and tell it
somehow to use the fpc 32 or 64
On Fri, 8 Jun 2018 10:32:57 +0200, Ondrej Pokorny via Lazarus
wrote:
>On 08.06.2018 10:31, Bo Berglund via Lazarus wrote:
>> And how can I tell Lazarus not to try to build a 64 bit program?
>
>If you want to go the simple way, install the 32bit Lazarus installer.
>
>On
On Fri, 08 Jun 2018 10:31:01 +0200, Bo Berglund via Lazarus
wrote:
>I wonder if Lazarus is able to import a D-XE5 project using the dproj file
Well, I installed Lazarus 1.8.4 win32 and then I went to Tools/Delphi
Conversion and found that the only file type it handles is the *.dpr,
I am checking if it is possible to convert a few projects from Delphi
XE5 to FPC/Lazarus.
The first such project (the simplest of the set) uses just standard
Delphi functions and is designed for Win32 only, It is defined in a
dproj file so now I wonder if Lazarus is able to import a D-XE5
project
On Fri, 8 Jun 2018 10:17:00 -0700 (MST), leledumbo via Lazarus
wrote:
>> Or is it just the converter that is havíng problems?
>
>In the package dialog, check "Register unit" for units containing Register
>procedure. I didn't remember the last time I converted a Delphi package, but
>it could be
On Mon, 11 Jun 2018 10:23:44 +0200, Michael Schnell via Lazarus
wrote:
>On 10.06.2018 15:11, Bo Berglund via Lazarus wrote:
>> ... Build IDE: Exit code 2, Errors: 23 ...
>
>You want to compile some 3rd party Dongle code in the IDE ?
>
>That is more than weired !
>
So
On Mon, 11 Jun 2018 23:17:30 +0200, Mattias Gaertner via Lazarus
wrote:
>On Mon, 11 Jun 2018 21:03:14 +0200
>Bo Berglund via Lazarus wrote:
>
>> On Mon, 11 Jun 2018 10:23:44 +0200, Michael Schnell via Lazarus
>> wrote:
>>
>> >On 10.06.2018
On Mon, 11 Jun 2018 10:13:21 +0200, Michael Schnell via Lazarus
wrote:
>On 08.06.2018 19:05, Bo Berglund via Lazarus wrote:
>> This Delphi package is a collection of some 20 components and all of
>> them have Register procedures inside of each source file.
>
>Are thos
On Fri, 27 Apr 2018 11:05:49 +0200, Joe via Lazarus
wrote:
>on Pi computers under Raspbian controlled over VNC the Lazarus code
>editor doesn't recognize keystrokes with AltGr and therefore characters
>like {[]}\ can't be put in. That's a known issue since 2016
On Sat, 30 Dec 2017 13:34:41 +0200, Juha Manninen via Lazarus
wrote:
>How is svn import related to compiled binary size?
Because the server I use is located in Austin, Tx and I am in Sweden.
Have to use a VPN, which is not fast at all.
>Do you store the
On Thu, 28 Dec 2017 10:13:11 +, Graeme Geldenhuys via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>On 2017-12-27 23:17, Bo Berglund via Lazarus wrote:
>> But I have done nothing else than installing from the Lazarus 1.8
>> installer (lazarus-1.8.0-fpc-3.0.4-win64.exe
BUMP!
Sent to the wrong list
--
Bo Berglund
Developer in Sweden
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
On Wed, 27 Dec 2017 14:05:55 +, Graeme Geldenhuys via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>On 2017-12-27 13:29, Bo Berglund via Lazarus wrote:
>> But now I am back on a Windows 7 machine and here I don't have a clue
>> as to how one installs the FreeTDS library
On Wed, 27 Dec 2017 17:32:38 +0100, Bo Berglund via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>On Wed, 27 Dec 2017 14:05:55 +, Graeme Geldenhuys via Lazarus
><lazarus@lists.lazarus-ide.org> wrote:
>
>>You simply download the DLL and include it in the same dire
I am writing a subversion server hook application (command line) on
Windows using FPC 3.0.4 and Lazarus 1.8.0 and I have now come to the
auditing database connection I want to implement.
The database server is an MSSQLServer Express instance on a Windows
2016 Server and it runs on a non-standard
What is the equivalent of the CVS .cvsignore file?
I have a lot of files that I don't want to get into the repository
because they are only temporary files created by the compiler every
time I do almost anything in the IDE. These are ignored when we use
CVS by the use of a global cvsignore
I usually program with Lazarus on a Linux platform and with Delphi on
Windows.
But now I am working on a Lazarus 1.8.0/fpc3.0.4 IDE to make a
crossplatform program.
On Linux I am used to do "strip -s filename" on the resulting
executable to bring it down to a sensible size.
But on Windows 7, what
On Fri, 5 Jan 2018 14:12:59 +0100, Martin Frb via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>On 05/01/18 12:41, Bo Berglund via Lazarus wrote:
>> I wonder if it is possible (and if so how) to enable the Lazarus code
>> editor to match the open/close parenthesi
On Sat, 6 Jan 2018 12:33:43 +0100, Martin Frb via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>On 06/01/18 10:25, Bo Berglund via Lazarus wrote:
>> Not working:
>> ( ): Controlled by what?
>Should be the same as ()
>
>Just remember, I think there
I wonder if it is possible (and if so how) to enable the Lazarus code
editor to match the open/close parenthesis and begin/end block
delimiters?
I find that I often have trouble finding which level of these I am
at...
I am currently using Lazarus 1.8.0 with FPC 3.0.4 on a Windows 7 X64
laptop.
On Sat, 20 Jan 2018 00:57:36 +0100, Bo Berglund via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>Is there some special setting needed in order to use Win10 as a
>developer?
I tried to start it from a command prompt instead, so in the console I
navigated to the bin folder and ty
I am having problems with Windows10 Pro x64 regarding running my
programs from Windows Explorer.
What happens is this:
- I have created a new virtual computer with Windows 10 Pro x64
- Installed Subversion and checked out a project including sources and
the 32 bit binary
- Went to the binary
I am writing a little Lazarus program to examine the registry values
stored by a program we use.
So far I have only used strings and integers in the registry, and I
have known in advance what type they are. Now I want to make a more
general kind of reader and so I have created a read function like
On Sat, 20 Jan 2018 00:57:36 +0100, Bo Berglund via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>I am having problems with Windows10 Pro x64 regarding running my
>programs from Windows Explorer.
>What happens is this:
>- I have created a new virtual computer with
On Tue, 6 Feb 2018 13:35:28 +0100, Alexander Hofmann via Lazarus
wrote:
>Hi,
>
>as stated in the MSDN article you cited, the REG_EXPAND_SZ type is a
>hint to the API/API-User, that the string (stored as any other string
>either 2-byte or 1-byte depending in the
On Sun, 04 Feb 2018 20:44:03 +0100, Bo Berglund via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>So there is a case construct taht uses the data type reported on each
>item, but I don't know what to do about rdExpandString.
>In fact I don't know what kind of data may hide b
On Tue, 06 Feb 2018 10:58:21 +0100, Bo Berglund via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>What I want to know is how to treat data of the type REG_EXPAND_SZ in
>the registry when reading it. There are not that many such but for
>completeness I want to be able to disp
On Wed, 27 Dec 2017 20:52:00 +0100, Ondrej Pokorny via Lazarus
wrote:
>Strange, I connect to MSSQL without InitialiseDBLib in both 64bit and
>32bit applications. I only add dblib.dll and libiconv.dll to the exe.
>
You are right. I commented out the initialization
On Sun, 29 Jul 2018 09:27:17 -0300, "Marcos Douglas B. Santos via
Lazarus" wrote:
>I haven't use Indy for years, but I've installed the version 10 in Lazarus
>1.9 (trunk) using FPC 3.1.1.
How did you install it?
Did you use the Package/OnLinePackageManager to get it thus ensuring
the most
On Thu, 26 Jul 2018 10:26:27 +0200, Sven Barth via Lazarus
wrote:
>> For example in some console apps I have made also for both Windows and
>> Raspbian I have this in the lpr file:
>> {$IFDEF UNIX}
>> {$IFDEF UseCThreads}
>> cthreads,
>> {$ENDIF}
>> {$ENDIF}
>>
>> If that is
On Wed, 25 Jul 2018 20:40:00 +0200, Bo Berglund via Lazarus
wrote:
>Concerning my config app I have checked that the code runs on ARM by
>building the same sources I use on my Win7 PC also on a RaspberryPi3B.
>Same FPC and Lazarus versions (3.0.4/1.8.4).
>
>No problems there exc
On Wed, 1 Aug 2018 15:37:05 -0400, Larry Dalton via Lazarus
wrote:
>On Wed, Aug 1, 2018 at 3:23 PM, Larry Dalton
>wrote:
>
>> I know I have had the solution to this problem the last time I did this
>> installation, but I have lost the email.
>>
Why attach useless HTML files to your messages?
On Fri, 27 Jul 2018 08:21:56 +0200, Bo Berglund via Lazarus
wrote:
>After this the program does no longer crashes when I try to connect to
>the device, but it does not connect either because I am having
>problems making OpenVPN to the network where the device lives work
>from the
I have a GUI program developed in FPC/Lazarus x64 on Windows.
It is an IoT device configuration application which would benefit from
being portable, i.e. executable on an Android phone. The devices in
question will be placed in locations where configuration would be
easier from a phone.
Before I
On Wed, 25 Jul 2018 11:47:06 -0400, Paul Breneman via Lazarus
wrote:
>You *hope* to compile a program *directly* on an Android phone with
>*little* effort? :)
Did you read "Crosscompile" as compiling *on* android?
I used cross to indicate that the compilation would be done elsewhere
like on a
I have an application that manages the configuration of an embedded
device, which communicates over TCP/IP. Currently I have implmented a
protocol with a command identifier for each data item and the way to
send the data is by sending a packet with the command ID plus the data
to the open socket.
On Fri, 20 Jul 2018 19:33:19 +0200, Bo Berglund via Lazarus
wrote:
I changed my code now so my recrd is instead an object:
type TMyRecord = Class(TObject)
checksum: word;
ssid: AnsiString;
passwd: AnsiString;
macaddr: AnsiString;
addr: TIpAddress;
baud: integer
On Fri, 20 Jul 2018 20:09:25 +0300, AlexeyT via Lazarus
wrote:
>
>> The config data are stored in a record and consists of a mix of data
>> types like strings and numbers as well as booleans.
>> Is there a simple way to encode the record as a JSON message
>
>Yes, it is. You can write to json
On Sat, 21 Jul 2018 09:29:29 +0200 (CEST), Michael Van Canneyt via
Lazarus wrote:
>> What have I done wrong?
>
>Because RTTI is made only for published properties.
>
>So, you must make it published properties:
>
>Type
>
>{ needed if you want to descend from TObject.
> You can also descend from
On Sat, 21 Jul 2018 17:47:54 +0200, Sven Barth via Lazarus
wrote:
>Look at the code that Michael wrote. He used properties on purpose,
>because only *properties* can be published while not being a class type.
Sorry, did not fully note the property keyword!
Not doing that made it easier to
On Sun, 22 Jul 2018 00:22:58 +0200, Bo Berglund via Lazarus
wrote:
>Can the JSON handlers deal with the array type TIpAddress?
Well, it trurns out that this fails earlier on when compiling...
So I have:
type
TIpAddress = array[0..3] of byte;
{$M+}
TEspConfiguration = Class(TObj
On Sun, 22 Jul 2018 07:52:40 +0200 (CEST), Michael Van Canneyt via
Lazarus wrote:
>Only dynamic arrays can be published.
>
So I changed the declaration:
TIpAddress = array of byte;
Then added a constructor to the class where I set the length to 4:
constructor TEspConfiguration.Create;
begin
On Sun, 22 Jul 2018 10:41:23 +0200 (CEST), Michael Van Canneyt via
Lazarus wrote:
>That is because you cannot pass the array as a var argument. Just remove the
>var, for a dynamic array it is not required anyway.
I did so and the compile error disappeared.
However, now that there are no compile
I am writing a testing application for checking out a TCP to Serial
bridge component. I am using Lazarus 1.8.0 and fpc 3.0.4 on Windows 7
For the serial port handling I found the "built-in" Serial unit
described here:
http://wiki.freepascal.org/Hardware_Access#FPC_built_in_Serial_unit
Now I have
On Sun, 09 Sep 2018 16:26:29 +0200, Bo Berglund via Lazarus
wrote:
>On Sun, 09 Sep 2018 13:33:22 +0200, Bo Berglund via Lazarus
> wrote:
>
>>3) Receiving data
>>
>I forgot to add a question about read timeouts...
>
>4) Read timeout
>-
On Sun, 09 Sep 2018 13:33:22 +0200, Bo Berglund via Lazarus
wrote:
>3) Receiving data
>
I forgot to add a question about read timeouts...
4) Read timeout
---
When running this to read incoming data:
status:= SerRead(serialhandle, s[1], 10);
How can I g
On Sun, 9 Sep 2018 20:44:34 +, Mark Morgan Lloyd via Lazarus
wrote:
>I did quite lot of work on the serial.pp unit more recently than that
>wiki page, in fact I didn't even know it existed. Please refer to the
>comments in that file in the first instance.
Thanks Mark,
I did that too and
On Mon, 10 Sep 2018 13:20:35 +0200, Giuliano Colla via Lazarus
wrote:
>Il 09/09/2018 13:33, Bo Berglund via Lazarus ha scritto:
>>I am writing a testing application for checking out a TCP to Serial
>>bridge component. I am using Lazarus 1.8.0 and fpc 3.0.4 on Windows 7
>>
On Mon, 10 Sep 2018 19:44:22 +0200, Giuliano Colla via Lazarus
wrote:
>Il 10/09/2018 17:30, Bo Berglund via Lazarus ha scritto:
>
>> This seems only to deal with ports 1..9, what about the higher
>> numbered ports 10..255?
>> And would it not be a long execution time for
On Mon, 10 Sep 2018 19:49:39 +0200, Giuliano Colla via Lazarus
wrote:
>Il 10/09/2018 17:30, Bo Berglund via Lazarus ha scritto:
>> Unfortunately not possible in the real case because the file transfer
>> protocol of the device only sends a header with the count of the da
On Fri, 12 Oct 2018 15:30:52 +0200, Bart via Lazarus
wrote:
>On Fri, Oct 12, 2018 at 2:30 PM Vojt?ch ?ihák via Lazarus
> wrote:
>>
>> I just tried TStringList(ComboBox1.Items).Duplicates:=dupIgnore; but it does
>> not work for combo (in Qt4).
>
>Override Insert and check if it is already in
I am trying to use a combobox as a container for recently used IP
addresses for easy selection by the user.
I can set the combobox style to csDropDown and Sorted to true.
But I cannot find the duplicates setting so I can set it to unique...
Is there some other way to do this except by loading the
On Sat, 13 Oct 2018 21:00:51 +0200, Bo Berglund via Lazarus
wrote:
>Sorry for the noise.
>
This is just a test of posting via GMane since my posts on the fpc
list have been rejected. Reason unknown to me. Worked for years until
now...
--
Bo Berglund
Developer in
On Sun, 14 Oct 2018 17:51:09 +0200, Bo Berglund via Lazarus
wrote:
>On Sat, 13 Oct 2018 21:00:51 +0200, Bo Berglund via Lazarus
> wrote:
>
>>Sorry for the noise.
>>
>This is just a test of posting via GMane since my posts on the fpc
>list have been rejected. R
On Mon, 22 Oct 2018 21:09:56 +0200, Bo Berglund via Lazarus
wrote:
>So I have Lazarus ver 1.8.4 and FPC ver 3.0.4 rev 57972 on my Windows
>7 Pro X64 laptop.
>I have also installed the IndyLaz package to get the Indy10 components
>and this works fine.
It turns out that this is false
1 - 100 of 641 matches
Mail list logo