[Lazarus] Mustache templates implementation

2021-04-20 Thread Michael Van Canneyt via lazarus
Hello , For my job I needed a Mustache templates library in pascal. Since dmustache (part of mORMot) fails the official mustache tests and did not work on the platform I needed it for, I wrote my own implementation. The result has been committed to packages/fcl-mustache, in case someone else

Re: [Lazarus] Clipboard Data Goes Away

2021-04-01 Thread Michael Van Canneyt via lazarus
On Thu, 1 Apr 2021, Anthony Walter via lazarus wrote: Perhaps there is a Linux service that can be used by applications to hand over and take ownership of clipboard data, and applications such as those I mentioned are using it in order to solve the problem I am describing? See my earlier

Re: [Lazarus] Clipboard Data Goes Away

2021-04-01 Thread Michael Van Canneyt via lazarus
On Thu, 1 Apr 2021, Anthony Walter via lazarus wrote: I noticed a recent discussion touching on this problem posted by Bo Berglund on November 20, 2020 to this same mailing list. Andreas Schneider replied in that thread, 'Pasting basically asks the application that "copied" it to get the

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Michael Van Canneyt via lazarus
On Tue, 23 Feb 2021, Juha Manninen via lazarus wrote: Hello LazUtils has unit Masks with classes TMask and TMaskList. FPC's packages/fpindexer has unit FPMasks also with classes TMask and TMaskList. A comment in FPMasks says "Moved here from LCL". Revision control shows it was added 9 years

Re: [Lazarus] MSSQL howto catch a TMSSQLConnection Error without Messagebox?

2021-01-27 Thread Michael Van Canneyt via lazarus
If you don't do a re-raise, I don't understand where the dialog box comes from, since you're catching all exceptions... Michael. On Wed, 27 Jan 2021, Andreas Frieß via lazarus wrote: Hi Michael, no, i did not re-raise there. I want only a silent flag. This should done by the Result:=

Re: [Lazarus] MSSQL howto catch a TMSSQLConnection Error without Messagebox?

2021-01-27 Thread Michael Van Canneyt via lazarus
On Wed, 27 Jan 2021, Andreas Frieß via lazarus wrote: On my Raspi/Debian i got on a TMSSQLConnection a messagebox if the server is not reachable. The connection is not my problem, but i am not able to cach this exeption silent without poping up this messagebox. The problem is, the messagebox

Re: [Lazarus] Bump issue

2021-01-22 Thread Michael Van Canneyt via lazarus
On Fri, 22 Jan 2021, Marco van de Voort via lazarus wrote: Op 2021-01-22 om 22:56 schreef Michael Van Canneyt via lazarus: I have some time this weekend, I will commit it. Is it really a good idea to accept msec=1000 for TryEncodeTimeInterval in a general unit like Dateutils? I

Re: [Lazarus] Bump issue

2021-01-22 Thread Michael Van Canneyt via lazarus
Hi, I have some time this weekend, I will commit it. Michael. On Fri, 22 Jan 2021, R.Smith via lazarus wrote: Hi all, I would like to know how to bump an issue in the bug tracker and I'm asking here because I don't wish to irritate the devs. Essentially the issue has been solved last

Re: [Lazarus] debugging a CGI

2021-01-20 Thread Michael Van Canneyt via lazarus
On Wed, 20 Jan 2021, Bo Berglund via lazarus wrote: On Tue, 19 Jan 2021 23:31:27 +0100 (CET), Michael Van Canneyt via lazarus wrote: Start a 'HTTP server application' in lazarus, add your web module unit to it and run it. (you may need to add some more units or packages, in essence

Re: [Lazarus] debugging a CGI

2021-01-19 Thread Michael Van Canneyt via lazarus
more units or packages, in essence the same oneas as in your CGI application). Once done with debugging, you can simply compile the CGI and deploy it. Michael. On Tue, Jan 19, 2021, 22:11 Michael Van Canneyt via lazarus < lazarus@lists.lazarus-ide.org> wrote: On Tue, 19 Jan 2021,

Re: [Lazarus] debugging a CGI

2021-01-19 Thread Michael Van Canneyt via lazarus
On Tue, 19 Jan 2021, duilio foschi via lazarus wrote: I would like to debug a CGI by tracing it in Lazarus IDE as a console application in windows. Is there a way to have the CGI read from standard input at start time? I recommend to host your webmodule in a http server app, this will make

Re: [Lazarus] FPDoc now with Markdown support

2021-01-07 Thread Michael Van Canneyt via lazarus
On Thu, 7 Jan 2021, Santiago A. via lazarus wrote: El 05/01/2021 a las 10:47, Michael Van Canneyt via lazarus escribió: Because people are naturally lazy and prefer easy & simple over strict & rich. But we could chose a language that is easy & simple for when you want t

Re: [Lazarus] FPDoc now with Markdown support

2021-01-05 Thread Michael Van Canneyt via lazarus
On Wed, 6 Jan 2021, Graeme Geldenhuys via lazarus wrote: On 02/01/2021 2:31 pm, Michael Van Canneyt via lazarus wrote: material theme: https://www.freepascal.org/~michael/docs-demo/material/system/tobject.dispatch/ There seems to be an issue generating constants and values

Re: [Lazarus] FPDoc now with Markdown support

2021-01-05 Thread Michael Van Canneyt via lazarus
On Wed, 6 Jan 2021, Graeme Geldenhuys via lazarus wrote: On 02/01/2021 2:31 pm, Michael Van Canneyt via lazarus wrote: Compare the official page for TObject.Dispatch: Looking at another class with more detail... Did you explicitly enable the functionality to generate Private, Protected

Re: [Lazarus] FPDoc now with Markdown support

2021-01-05 Thread Michael Van Canneyt via lazarus
On Tue, 5 Jan 2021, Graeme Geldenhuys via lazarus wrote: On 03/01/2021 7:48 pm, Don Siders via lazarus wrote: I've been looking at allowing markdown for the description files (they would be less verbose then), but there seems to be no decent markdown parser available for pascal. If somone

Re: [Lazarus] FPDoc now with Markdown support

2021-01-04 Thread Michael Van Canneyt via lazarus
On Sun, 3 Jan 2021, Don Siders via lazarus wrote: > I would rather see sectioning added to the FPDoc tags/content model: > > > >Using the Control >Lorem ipsum sic dolor amet. > > And what would this do in terms ouf output ? In general, it would make FPDoc more usable for

Re: [Lazarus] FPDoc now with Markdown support

2021-01-03 Thread Michael Van Canneyt via lazarus
On Sun, 3 Jan 2021, Don Siders via lazarus 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. This can be used as input for mkdocs or

Re: [Lazarus] FPDoc now with Markdown support

2021-01-03 Thread Michael Van Canneyt via lazarus
On Sun, 3 Jan 2021, Соболь Андрей Евгеньевич via lazarus wrote: I've been looking at allowing markdown for the description files (they would be less verbose then), but there seems to be no decent markdown parser available for pascal. If somone cares to contribute one... For "overview pages"

[Lazarus] FPDoc now with Markdown support

2021-01-02 Thread Michael Van Canneyt via lazarus
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. This can be used as input for mkdocs or another engine such as sphinx. As a first engine, I

[Lazarus] Package requirement dialog & OLPM ?

2020-12-12 Thread Michael Van Canneyt via lazarus
Hi, On my Mac, the "new package requirement" dialog shows the IDEIntf package as an online package (see attached screenshot req.png). As a result, I can't select it without 'installing' it first, which is of course total nonsense as it is already installed. The lazarus on my Mac is a 2.0.10,

Re: [Lazarus] Using Chrome API in Lazarus - possible on Linux?

2020-12-06 Thread Michael Van Canneyt via lazarus
On Sun, 6 Dec 2020, Don Siders via lazarus wrote: Is there someone here who has used the Chrome API with Lazarus for anything video related and is willing to share? I never managed to get the Chrome API to work on linux, but an effort is currently underway to make the chromium browser

Re: [Lazarus] Using Chrome API in Lazarus - possible on Linux?

2020-12-06 Thread Michael Van Canneyt via lazarus
On Sun, 6 Dec 2020, Bo Berglund via lazarus wrote: I have been looking for ways to create a video downloader for myself using FPC/Lazarus. I already created a video editor using PasLibVlc and ffmpeg and it works pretty well for what I want to do. It needs VLC to be installed in order to show

Re: [Lazarus] CDDB access

2020-12-01 Thread Michael Van Canneyt via lazarus
On Wed, 2 Dec 2020, Teresa Williams via lazarus wrote: Hi I need to access CDDB (and also MusicBrainz would be nice) on Linux. I found https://wiki.freepascal.org/CDDB but as that page suggests, the download link is defunct. Are there any other such? In the past I have done this by

[Lazarus] Daily docs

2020-11-28 Thread Michael Van Canneyt via lazarus
Hello, I finally decided to tackle something which was on my TODO list for many years. From now on we generate daily documentation updates. They are accessible from this page: https://www.freepascal.org/daily/daily.html This is not only the FPC documentation as generated from the sources,

Re: [Lazarus] Lazarus totally destroyed... :(

2020-11-20 Thread Michael Van Canneyt via lazarus
On Fri, 20 Nov 2020, Bart via lazarus wrote: On Fri, Nov 20, 2020 at 1:09 PM Michael Van Canneyt via lazarus wrote: - The IDE does not handle missing ~/.lazarus any more. I tried using startlazarus, but this gives the same issue. FWIW: I just did a make clean bigide on a fresh

Re: [Lazarus] Lazarus totally destroyed... :(

2020-11-20 Thread Michael Van Canneyt via lazarus
On Fri, 20 Nov 2020, Mattias Gaertner via lazarus wrote: On Fri, 20 Nov 2020 11:32:49 +0100 (CET) Michael Van Canneyt via lazarus wrote: Hello, - Updated Lazarus from SVN. - Lazarus no longer compiles (FPC 3.2) It compiles here. Well: home:~/lazarus> svn status -q home:~/laza

Re: [Lazarus] Lazarus totally destroyed... :(

2020-11-20 Thread Michael Van Canneyt via lazarus
On Fri, 20 Nov 2020, Juha Manninen via lazarus wrote: On Fri, Nov 20, 2020 at 12:32 PM Michael Van Canneyt via lazarus < lazarus@lists.lazarus-ide.org> wrote: - Updated Lazarus from SVN. - Lazarus no longer compiles (FPC 3.2) - Managed to fix that: home:~/lazarus> svn

[Lazarus] Lazarus totally destroyed... :(

2020-11-20 Thread Michael Van Canneyt via lazarus
Hello, - Updated Lazarus from SVN. - Lazarus no longer compiles (FPC 3.2) - Managed to fix that: home:~/lazarus> svn diff ide/ideoptionsdlg.pas Index: ide/ideoptionsdlg.pas === --- ide/ideoptionsdlg.pas (revision 64150)

Re: [Lazarus] Default project ?

2020-11-19 Thread Michael Van Canneyt via lazarus
On Thu, 19 Nov 2020, Bo Berglund via lazarus wrote: On Thu, 19 Nov 2020 12:17:11 +0100, Bart via lazarus wrote: Can we now get back to the original question this thread was about? I agree that it would be nice to have a setting in Lazarus to define *what type of project* it will

Re: [Lazarus] Default project ?

2020-11-18 Thread Michael Van Canneyt via lazarus
On Wed, 18 Nov 2020, Bo Berglund via lazarus wrote: Because it needs a project. It cannot work without one, so it creates one. So if the hypothetical option -np would be implemented, you would definitely be presented with the same 'project wizard' dialog you get when you close the project

Re: [Lazarus] Default project ?

2020-11-18 Thread Michael Van Canneyt via lazarus
On Wed, 18 Nov 2020, Bo Berglund via lazarus wrote: On Wed, 18 Nov 2020 08:43:00 +0100 (CET), Michael Van Canneyt via lazarus wrote: Is there a way to change the default project generated when the IDE starts ? Why is Lazarus creating an empty project on startup in the first place

Re: [Lazarus] Default project ?

2020-11-18 Thread Michael Van Canneyt via lazarus
On Wed, 18 Nov 2020, Bart via lazarus wrote: On Wed, Nov 18, 2020 at 8:43 AM Michael Van Canneyt via lazarus wrote: If you tell the IDE not to reload the last project when starting, it creates a default GUI application. Since 99,99% of my programs are console programs, And it would

[Lazarus] Default project ?

2020-11-17 Thread Michael Van Canneyt via lazarus
Hi, Is there a way to change the default project generated when the IDE starts ? If you tell the IDE not to reload the last project when starting, it creates a default GUI application. Since 99,99% of my programs are console programs, I looked for a setting to change this, but did not find

Re: [Lazarus] AutoCommit

2020-11-14 Thread Michael Van Canneyt via lazarus
On Sat, 14 Nov 2020, Sven Barth via lazarus wrote: Michael Van Canneyt via lazarus schrieb am Fr., 13. Nov. 2020, 22:37: On Fri, 13 Nov 2020, Ondrej Pokorny via lazarus wrote: Usually we try to use the "default" feature of the newly added properties so that they are str

Re: [Lazarus] AutoCommit

2020-11-14 Thread Michael Van Canneyt via lazarus
On Sat, 14 Nov 2020, Ondrej Pokorny wrote: On 13.11.2020 22:37, Michael Van Canneyt via lazarus wrote: On Fri, 13 Nov 2020, Ondrej Pokorny via lazarus wrote: Usually we try to use the "default" feature of the newly added properties so that they are streamed only when really se

Re: [Lazarus] AutoCommit

2020-11-13 Thread Michael Van Canneyt via lazarus
On Fri, 13 Nov 2020, Ondrej Pokorny via lazarus wrote: Usually we try to use the "default" feature of the newly added properties so that they are streamed only when really set and used. When they are not used, the LFM can still be loaded in a legacy version of Lazarus because the new

Re: [Lazarus] AutoCommit

2020-11-13 Thread Michael Van Canneyt via lazarus
Yes, but that's always so when properties are added to components. Michael. On Fri, 13 Nov 2020, Larry Dalton wrote: So we lose some backwards portability? Sent from my iPhone On Nov 13, 2020, at 11:06, Michael Van Canneyt wrote:  Your .lfm file contains a property "autocommit" that

Re: [Lazarus] AutoCommit

2020-11-13 Thread Michael Van Canneyt via lazarus
Your .lfm file contains a property "autocommit" that exists in 2.0.10 but not in 2.0.6. I think 2.0.10 is based on FPC 3.2.0 and 2.0.6 was still based on 3.0.4. A lot of new properties appeared between 3.0.4 and 3.2.0. Michael. On Fri, 13 Nov 2020, Larry Dalton via lazarus wrote: I forgot

Re: [Lazarus] libmysql.dll

2020-11-04 Thread Michael Van Canneyt via lazarus
On Wed, 4 Nov 2020, Larry Dalton wrote: I think so. I removed all versions of libmysql from my computer, and replaced them with the version that downloaded with the new Mysql install. Is there any way I can check all the installations to be sure they are all 64bit? Not that I am aware of.

Re: [Lazarus] libmysql.dll

2020-11-04 Thread Michael Van Canneyt via lazarus
On Wed, 4 Nov 2020, Larry Dalton via lazarus wrote: Not the answer in this case. I am using MySQL 8.0 on my linux laptop, and have no issues with it. I do have to set the 'skiplibraryversioncheck' to TRUE, and it works just fine. I have eliminated that possibility. Correct architecture

Re: [Lazarus] libmysql.dll

2020-11-03 Thread Michael Van Canneyt via lazarus
On Tue, 3 Nov 2020, Larry Dalton via lazarus wrote: I have done a complete overhaul on my computer, installing a new version of mysql, phpmyadmin, apache, and lazarus. Here are the current versions: Windows 10 Lazarus 2.0.10 Wamperserver 3.2.3.3 Apache/2.4.46(Win64) phpmyadmin 5.0.2 MySQL

Re: [Lazarus] What to replace Application.Processmessages with?

2020-11-01 Thread Michael Van Canneyt via lazarus
On Sun, 1 Nov 2020, Bo Berglund via lazarus wrote: On Sun, 1 Nov 2020 10:20:11 +0100 (CET), Michael Van Canneyt via lazarus wrote: QUESTION: Is there a way in code to check if Forms is used? So it can be used instead of {$IFDEF NOGUI} normally {$IF DECLARED(Forms)} or {$IF DECLARED

Re: [Lazarus] What to replace Application.Processmessages with?

2020-11-01 Thread Michael Van Canneyt via lazarus
On Sun, 1 Nov 2020, Bo Berglund via lazarus wrote: should do the trick for you. A quick test: It seems like there is a problem with this... I added this to the end of a random function: {$IF DECLARED(TForm)} Application.ProcessMessages; {$ENDIF} Even though the project does not use

Re: [Lazarus] What to replace Application.Processmessages with?

2020-11-01 Thread Michael Van Canneyt via lazarus
On Sun, 1 Nov 2020, Bo Berglund via lazarus wrote: procedure AppProcessMessages; virtual; abstract; (no implementation) And ProcessAsyncCallQueue seems to be doing the job with pretty intricate code inside a CriticalSection shield. QUESTION: Is there a way in code to check if Forms is used?

Re: [Lazarus] Lazarus 2.0.10 corrupted by Win 10 crash, how to repair?

2020-10-29 Thread Michael Van Canneyt via lazarus
On Thu, 29 Oct 2020, Bo Berglund via lazarus wrote: Yesterday I was working on an application using Lazarus 2.0.20/fpc 3.2.0 on a Windows 10 notebook. Suddenly Win10 decided to crash with a memory fault and restarted itself. But now Lazarus no longer works and when I inspected the config dir

Re: [Lazarus] What to replace Application.Processmessages with?

2020-10-28 Thread Michael Van Canneyt via lazarus
On Tue, 27 Oct 2020, Mattias Gaertner via lazarus wrote: On Mon, 26 Oct 2020 13:00:26 +0100 (CET) Michael Van Canneyt via lazarus wrote: [...] Procedure HandleMainLoop; begin {$IFDEF NOGUI} CheckSynchronize; {$ELSE} Application.ProcessMessages; {$ENDIF} end; And call that both

Re: [Lazarus] What to replace Application.Processmessages with?

2020-10-26 Thread Michael Van Canneyt via lazarus
On Tue, 13 Oct 2020, Bo Berglund via lazarus wrote: Now I wonder if I could put something else into the loops so that the main object of Application.Processmessages will be handled, namely to let event functions run as needed. Can I for example use CheckSynchronize in these loops? I.e.

Re: [Lazarus] How to start Lazarus on Mac ?

2020-10-04 Thread Michael Van Canneyt via lazarus
On Sun, 4 Oct 2020, Mattias Gaertner via lazarus wrote: On Sun, 4 Oct 2020 15:52:27 +0200 (CEST) Michael Van Canneyt via lazarus wrote: [...] Should not the system installed version detect the 'local' version and start that ? Sounds like: https://bugs.freepascal.org/view.php?id=37753

[Lazarus] How to start Lazarus on Mac ?

2020-10-04 Thread Michael Van Canneyt via lazarus
Hi, After installing Lazarus and recompiling it with the packages I need, it restarts and I see the packages I want. Then I stop lazarus and start it again through Launchpad. In this case, I get the originally installed Lazarus. No sign of the new packages. I look in the packages list, and it

Re: [Lazarus] Debugging in Lazarus, cannot inspect values at breakpoints...

2020-09-30 Thread Michael Van Canneyt via lazarus
On Wed, 30 Sep 2020, Ondrej Pokorny via lazarus wrote: On 30.09.2020 10:55, Michael Van Canneyt via lazarus wrote: Does Lazarus offer the functionality Delphi has (since quite some time, I might add):  custom debug info visualizers ? See http://docwiki.embarcadero.com/RADStudio/Sydney/en

Re: [Lazarus] Debugging in Lazarus, cannot inspect values at breakpoints...

2020-09-30 Thread Michael Van Canneyt via lazarus
On Tue, 29 Sep 2020, Martin Frb via lazarus wrote: On 29/09/2020 18:22, Martin Frb via lazarus wrote: On 29/09/2020 17:49, Bo Berglund via lazarus wrote: When I reach this breakpoint and I hover the mouse over Body.Text or Body.Count Lazarus shows a message saying: Body.Text = Type

Re: [Lazarus] FileUtil.FindAllFiles - case-sensitive on Unix

2020-09-20 Thread Michael Van Canneyt via lazarus
On Mon, 21 Sep 2020, AlexeyT via lazarus wrote: procedure FindAllFiles(AList: TStrings; const SearchPath: String; ?? Searcher.Search(SearchPath, SearchMask, SearchSubDirs); Here we miss parameter "CaseSensitive=False". So on Linux it is False and function does case-insens search. It is

Re: [Lazarus] How to move installed component package sources?

2020-09-19 Thread Michael Van Canneyt via lazarus
On Fri, 18 Sep 2020, Bo Berglund via lazarus wrote: I have installed a custom component package on the palette of Lazarus. Now I realize that I did it the wrong way since the package sources are inside a project tree of many apps and other things. I want to have the sources moved to my

Re: [Lazarus] TSql57 replacement

2020-09-17 Thread Michael Van Canneyt via lazarus
Use the ODBC connector. Michael. On Thu, 17 Sep 2020, larrydalton71 wrote: Is there another way to connect now? I don't want to install Mysql 57.Sent from my Verizon, Samsung Galaxy smartphone Original message From: Michael Van Canneyt via lazarus Date: 9/17/20 07:14

Re: [Lazarus] TSql57 replacement

2020-09-17 Thread Michael Van Canneyt via lazarus
On Thu, 17 Sep 2020, larrydalton71 via lazarus wrote: Are there any plans to replace the T57SqlConnection? I have done a complete update on a laptop with Lazarus Mint 20, Lazarus 2.0.10, and Mysql 8.0, and need to access my sql databasesSent from my Verizon, Samsung Galaxy smartphone

Re: [Lazarus] JCF2 patch in trunk

2020-09-11 Thread Michael Van Canneyt via lazarus
On Fri, 11 Sep 2020, Mattias Gaertner via lazarus wrote: On Fri, 11 Sep 2020 13:14:59 +0300 "Alexey Tor. via lazarus" wrote: https://github.com/graemeg/lazarus/commit/f4ffd5e0640948e9c396e1ef1b2aacd90512ac77    if StartsText('{$include',pcToken.SourceCode)=true then   lPos:=10    

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-23 Thread Michael Van Canneyt via lazarus
On Thu, 23 Jul 2020, Bo Berglund via lazarus wrote: On Wed, 22 Jul 2020 13:23:43 +0200 (CEST), Michael Van Canneyt via lazarus wrote: The lazserial seems to be a wrapper around lazsynaser, which I assume is from synapse. You should be OK just using directly lazsynaser. It has no GUI

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Michael Van Canneyt via lazarus
On Wed, 22 Jul 2020, Bo Berglund via lazarus wrote: On Wed, 22 Jul 2020 12:23:42 +0200, Bo Berglund via lazarus wrote: On Wed, 22 Jul 2020 11:55:27 +0200, Bo Berglund via lazarus wrote: Then while chasing a strange error concerning wsmenus I changed from what it was in the beginning to

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Michael Van Canneyt via lazarus
On Wed, 22 Jul 2020, Bo Berglund via lazarus wrote: On Wed, 22 Jul 2020 12:34:34 +0200 (CEST), Michael Van Canneyt via lazarus wrote: Then while chasing a strange error concerning wsmenus I changed from what it was in the beginning to nogui. It means you have somewhere a reference

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Michael Van Canneyt via lazarus
On Wed, 22 Jul 2020, Bo Berglund via lazarus wrote: OK, so I created this program as a simple program with no template. In Delphi it was a TService descendant, but now i want it to just be a normal console program, which I can run as a service under Systemd on Linux. Then while chasing a

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Michael Van Canneyt via lazarus
On Wed, 22 Jul 2020, Bo Berglund via lazarus wrote: On Wed, 22 Jul 2020 11:21:07 +0200 (CEST), Michael Van Canneyt via lazarus wrote: PS. Please change the lazarus mailing list address you use to It seems you're still using the old laza...@lists.lazarus.freepascal.org People doing

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-22 Thread Michael Van Canneyt via lazarus
On Wed, 22 Jul 2020, Bo Berglund via lazarus wrote: On Wed, 22 Jul 2020 08:09:08 +0300, "Alexey Tor. via lazarus" wrote: On gtk2 it calls TGtk2WidgetSet.CreateTimer, which calls gtk_timeout_add() I cannot find in inet, about max number of 'timeouts' in gtk2. Alexey I am using:

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Michael Van Canneyt via lazarus
On Fri, 17 Jul 2020, Luca Olivetti via lazarus wrote: El 17/7/20 a les 11:46, Luca Olivetti via lazarus ha escrit: In fact, if you look at the bug report, it's enough to use the old version of Fielddefs.Add (i.e. the one without the encoding) to "fix" the problem, but it's not because of

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Michael Van Canneyt via lazarus
On Fri, 17 Jul 2020, Luca Olivetti wrote: El 17/7/20 a les 9:51, Michael Van Canneyt ha escrit: I reported it here https://bugs.freepascal.org/view.php?id=37370 I found that reverting https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision=43245 (in fact I just took sdfdata.pp

Re: [Lazarus] Debugging the rtl/fcl - segfault in sdfdataset

2020-07-17 Thread Michael Van Canneyt via lazarus
On Thu, 16 Jul 2020, Luca Olivetti wrote: El 16/7/20 a les 8:55, Luca Olivetti via lazarus ha escrit: El 15/7/20 a les 18:26, Luca Olivetti via lazarus ha escrit: For the record, the segfault happens here #0 SYSGETMEM_FIXED(544) at ../inc/heap.inc:963 The memory is hosed, I still don't

Re: [Lazarus] Cannot compile console application, why?

2020-07-06 Thread Michael Van Canneyt via lazarus
On Mon, 6 Jul 2020, Bo Berglund via lazarus wrote: On Mon, 6 Jul 2020 07:20:08 +0200 (CEST), Michael Van Canneyt via lazarus wrote: I suggest to remove indylaz from the uses clause. It pulls in some GUI related code, probably some design-time stuff. So I have done this: - deleted

Re: [Lazarus] Cannot compile console application, why?

2020-07-05 Thread Michael Van Canneyt via lazarus
On Mon, 6 Jul 2020, Bo Berglund via lazarus wrote: I have created a test application using Lazarus 2.0.8 and fpc 3.0.4 on Windows 10. The purpose is to check some Indy10 TCP communications items before putting them into the main project. So I have created a new project as a console

Re: [Lazarus] Proposal: Allow Umlaute and Accented Characters in Identifiers

2020-07-04 Thread Michael Van Canneyt via lazarus
On Sat, 4 Jul 2020, Special via lazarus wrote: Am 03.07.2020 um 16:13 schrieb Martin Frb via lazarus: On 03/07/2020 14:55, Péter Gábor via lazarus wrote: Hi! Then you must allow Cyrillic,d Arabic and so Chinese and other national and special characters to be used in identifiers. Worse, the

Re: [Lazarus] Proposal: Allow Umlaute and Accented Characters in Identifiers

2020-07-03 Thread Michael Van Canneyt via lazarus
On Fri, 3 Jul 2020, Martin Frb via lazarus wrote: On 03/07/2020 16:21, Péter Gábor via lazarus wrote: Hi! I hope that you did not misread my words/sentences. Your example if perfect to illustrate the reason why I don't want international characters in the language itself (and identifiers).

Re: [Lazarus] Wrong Duplicate Identifier error message?

2020-07-02 Thread Michael Van Canneyt via lazarus
On Thu, 2 Jul 2020, Special via lazarus wrote: Am 01.07.2020 um 20:36 schrieb Mattias Gaertner via lazarus: On Wed, 1 Jul 2020 20:15:45 +0200 Special via lazarus wrote: [...] the following unit throws an (I think wrong) compile error "Duplicate identifier 'Connection'". This happens

Re: [Lazarus] SQLdb: Pseudo Transaction?

2020-07-01 Thread Michael Van Canneyt via lazarus
On Wed, 1 Jul 2020, Luca Olivetti via lazarus wrote: El 1/7/20 a les 0:40, R.Smith via lazarus ha escrit: On 2020/06/30 22:52, Special via lazarus wrote: Hi, Ryan, I followed your advice and removed XTransaction and all references to it from TestButtonClick. But now I get an exception

Re: [Lazarus] SQLdb: Pseudo Transaction?

2020-06-30 Thread Michael Van Canneyt via lazarus
On Tue, 30 Jun 2020, Special via lazarus wrote: Hi, Ryan, I followed your advice and removed XTransaction and all references to it from TestButtonClick. But now I get an exception with the message "Transaction not set". Any hint? With SQLDB you always need a transaction component. What

Re: [Lazarus] Making a Linux systemd service, how does one handle the shutdown?

2020-06-21 Thread Michael Van Canneyt via lazarus
On Sun, 21 Jun 2020, Bo Berglund via lazarus wrote: I have read that a systemd service on Linux will be taken down by the service manager using kill -TERM, i.e. the application is given a chance for a clean shutdown. So my question is: How/where do I implement a handler for the terminate

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-21 Thread Michael Van Canneyt via lazarus
On Sun, 21 Jun 2020, Bo Berglund via lazarus wrote: On Sun, 21 Jun 2020 11:12:17 +0200 (CEST), Michael Van Canneyt via lazarus wrote: This is so, but it does not have to be a problem: you must not recompile lazarus itself using such a secondary copy. Since Lazarus recompiles itself when

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-21 Thread Michael Van Canneyt via lazarus
Now you can start 2 instances of lazarus, with a different setting for the compiler version. I have 4 or 5 such versions. Thanks, that seems simple enough. :) It is. Just a follow-up: After downloading the 3.2.0 sources via svn I went into the new 3.2.0 dir and did (I am using an RPi4

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-21 Thread Michael Van Canneyt via lazarus
On Sun, 21 Jun 2020, Bo Berglund via lazarus wrote: Is it possible to switch Lazarus between using fpc 3.0.4 and 3.2.0 so as to compare the two easily? Yes. Just install the new FPC alongside the old one. The simplest is then to copy the lazarus settings directory, and create a shortcut

Re: [Lazarus] fpWeb and server-sent events

2020-06-04 Thread Michael Van Canneyt via lazarus
On Thu, 4 Jun 2020, Luca Olivetti via lazarus wrote:     FServer.Port:=8080;     FServer.Threaded:=true;     FServer.Run;   except     on E:Exception do     begin   writeln(E.Message);   sleep(1000);   FServer.Free;     end;   end; Oh, and I had to do some more

Re: [Lazarus] fpWeb and server-sent events

2020-06-04 Thread Michael Van Canneyt via lazarus
On Thu, 4 Jun 2020, Luca Olivetti via lazarus wrote: El 3/6/20 a les 15:54, Michael Van Canneyt via lazarus ha escrit: On Wed, 3 Jun 2020, Luca Olivetti via lazarus wrote: Hello, I need to embed a simple web server in my application that 1) should server a couple of static files 2

Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-04 Thread Michael Van Canneyt via lazarus
On Thu, 4 Jun 2020, Francesco Sammarco wrote: I tested this way. But not run correctly. Who is the Google API creator? Google of course. This is not a problem of the FPC API. The API just tranfers data in a typesafe manner: All it does is give you a way to create and interpret the JSON

Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-04 Thread Michael Van Canneyt via lazarus
Hello, I'm afraid I am of no help here. I am not an expert on the google Calendar API... What you can try to do is set the calendar configuration to your timezone (Italy/Rome, I suppose) and do not provide any timezone information when you create your items. Michael. On Thu, 4 Jun 2020,

Re: [Lazarus] fpWeb and server-sent events

2020-06-03 Thread Michael Van Canneyt via lazarus
On Wed, 3 Jun 2020, Luca Olivetti via lazarus wrote: El 3/6/20 a les 15:54, Michael Van Canneyt via lazarus ha escrit: On Wed, 3 Jun 2020, Luca Olivetti via lazarus wrote: Hello, I need to embed a simple web server in my application that 1) should server a couple of static files 2

Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-03 Thread Michael Van Canneyt via lazarus
On Wed, 3 Jun 2020, Francesco Sammarco wrote: sorry and how do I set the date and time of the apartment ?! I would think this is sufficient: Entry := FCalendarAPI.EventsResource.Get(CalendarFindedId, my_id_app); start_e := TEventDateTime.Create(); end_e := TEventDateTime.Create();

Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-03 Thread Michael Van Canneyt via lazarus
On Wed, 3 Jun 2020, Francesco Sammarco wrote: sorry I don't understand, you say that just remove the lines where I specify the timezone ?! No, remove the start_e.dateTime := LocalTimeToUniversal(start_e.dateTime); I think it is not necessary if you set the timezone. Michael. Il mer

Re: [Lazarus] fpWeb and server-sent events

2020-06-03 Thread Michael Van Canneyt via lazarus
On Wed, 3 Jun 2020, Luca Olivetti via lazarus wrote: Hello, I need to embed a simple web server in my application that 1) should server a couple of static files 2) send server-sent events https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events I can

Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-03 Thread Michael Van Canneyt via lazarus
On Wed, 3 Jun 2020, Francesco Sammarco via lazarus wrote: Hi everyone, I have the following problem. I have a calendar (Italian) to sync with Google Calendar. With the following code I can work quite well. If today (2020-06-03) I set a new appointment it is saved on google calendar on the

Re: [Lazarus] Lazarus on Ubuntu 18.04.4 via VNC cannot find utilities

2020-05-25 Thread Michael Van Canneyt via lazarus
On Mon, 25 May 2020, Bo Berglund via lazarus wrote: So if I have this desktop file in ~/.local/share/applications it will work from the menu too: [Desktop Entry] Comment=Lazarus IDE 2.0.8 Terminal=false Name=Lazarus 2.0.8 #Entry below in order to secure setting up PATH correctly on start

Re: [Lazarus] Lazarus on Ubuntu 18.04.4 via VNC cannot find utilities

2020-05-25 Thread Michael Van Canneyt via lazarus
On Mon, 25 May 2020, Bo Berglund via lazarus wrote: On Mon, 25 May 2020 12:32:59 +0200 (CEST), Michael Van Canneyt via lazarus wrote: Then Lazarus starts OK but again throws the error due to /home/bosse/bin missing from PATH. Where is it added to the PATH ? Normally, if you do

Re: [Lazarus] Lazarus on Ubuntu 18.04.4 via VNC cannot find utilities

2020-05-25 Thread Michael Van Canneyt via lazarus
On Mon, 25 May 2020, Bo Berglund via lazarus wrote: /home/bosse/dev/lazarus/2.0.8/startlazarus --pcp=/home/bosse/.lazarus_2.0.8 %f You must omit the %f on the command line. What happens if you do /bin/bash -l -c '/home/bosse/dev/lazarus/2.0.8/startlazarus

Re: [Lazarus] Lazarus on Ubuntu 18.04.4 via VNC cannot find utilities

2020-05-25 Thread Michael Van Canneyt via lazarus
On Mon, 25 May 2020, Bo Berglund via lazarus wrote: On Mon, 25 May 2020 07:36:55 +0200 (CEST), Michael Van Canneyt via lazarus wrote: On Sun, 24 May 2020, Bo Berglund via lazarus wrote: Comment=Lazarus IDE 2.0.8 Terminal=false Name=Lazarus 2.0.8 Exec=/home/bosse/dev/lazarus/2.0.8

Re: [Lazarus] Lazarus handbook environment proposal

2020-05-23 Thread Michael Van Canneyt via lazarus
On Sat, 23 May 2020, Salvatore Coppola via lazarus wrote: Goodmorning people, some of us are waiting in presale for the Lazarus Handbook. I've read from Detlef that will be printed soon. I've seen on Blaisepascal site that will'be distributed both paper and pdf. Btw there are about 1600 pages

Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Michael Van Canneyt via lazarus
On Thu, 21 May 2020, Werner Pamler via lazarus wrote: Am 21.05.2020 um 17:45 schrieb Michael Van Canneyt via lazarus: Where are the SVG sources for the icons ? Great ! Thanks ! Now I still need to learn some Inkscape, but that's for later :-) Michael

Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Michael Van Canneyt via lazarus
On Thu, 21 May 2020, Werner Pamler via lazarus wrote: Am 21.05.2020 um 16:13 schrieb Michael Van Canneyt via lazarus: What is the tool used to make icons for standard Lazarus components ? Roland Hahn who designed most of the palette and a good part of the toolbar icons is using Inkscape

[Lazarus] Tool to make icons ?

2020-05-21 Thread Michael Van Canneyt via lazarus
Hi, What is the tool used to make icons for standard Lazarus components ? Every time I need to make an icon for a component, I find myself in the situation that I start looking for a tool on internet. Should not lazarus come out of the box with a basic tool that allows you to create

Re: [Lazarus] R: lazarus Digest, Vol 148, Issue 26

2020-05-18 Thread Michael Van Canneyt via lazarus
On Mon, 18 May 2020, Simone Tacconi via lazarus wrote: This new feature would be very useful for me. I hope it can be implemented. In the meantime, what is the hook for comments? I was mistaken. The OnDirective event is already there on TPascalScanner. The last parsed comment is

Re: [Lazarus] Parsing compiler directive with fcl-passrc

2020-05-17 Thread Michael Van Canneyt via lazarus
On Sun, 17 May 2020, Simone Tacconi via lazarus wrote: I know that in general, compiler directives are processed by the preprocessor before the parser. In my case I use fcl-passrc in a code analysis tool that I am building and I would need to detect directives during parsing.  It's possible? 

Re: [Lazarus] Lazarus/Zoom Conflict

2020-05-11 Thread Michael Van Canneyt via lazarus
On Tue, 12 May 2020, Michael Thompson via lazarus wrote: Now all of the database edit fields when I type in them double entry. If I type -2.5, I get "--22..55" I had this one a few years ago. There's a configuration file to change somewhere, and I'm afraid I can't remember exactly.

Re: [Lazarus] Cross-platform using TRegistry - how to?

2020-05-04 Thread Michael Van Canneyt via lazarus
On Mon, 4 May 2020, Bart via lazarus wrote: On Mon, May 4, 2020 at 12:41 AM Bo Berglund via lazarus wrote: structure: HKLM\SOFTWARE\Companyname\Applicationname\Server\(named values) HKLM\SOFTWARE\Companyname\Applicationname\Configuration\(named values) The *nix way is to use .conf

Re: [Lazarus] Lazarus svn compile error: "Error: Duplicate resource: Type = 10, Name = TSELECTDATASETFORM, Lang ID, = 0000"

2020-05-01 Thread Michael Van Canneyt via lazarus
On Fri, 1 May 2020, John Landmesser via lazarus wrote: Windows 10: Lazarus 2.1.0 r63090M FPC 3.0.4 i386-win32-win32/win64 Log messages: IDE erstellen: Exit code 2, Fehler: 2, Warnungen: 7, Hinweise: 1 sourcesyneditor.pas(1574,35) Warning: Symbol "FScreenCaretPainterClass" is deprecated:

Re: [Lazarus] TBufDataset issues

2020-05-01 Thread Michael Van Canneyt via lazarus
On Fri, 1 May 2020, Werner Pamler via lazarus wrote: There's another design-time related issue with AutoInc fields: see forum post https://forum.lazarus.freepascal.org/index.php/topic,49614.msg360102.html#msg360102. The post contains a small demo to show the issue. I fixed it, it is

Re: [Lazarus] TBufDataset issues

2020-05-01 Thread Michael Van Canneyt via lazarus
On Fri, 1 May 2020, Werner Pamler via lazarus wrote: Am 30.04.2020 um 10:45 schrieb Michael Van Canneyt via lazarus: I added several menus: - Create dataset (what you need) - Save data to file (allows to save data in memory to file) - Load data from file (allows to load data from a file

<    1   2   3   4   5   6   7   8   9   >