Re: [Lazarus] Email sending program using Indy stopped working - seems to be an SSL problem

2024-01-15 Thread Jean SUZINEAU via lazarus

Le 14/01/2024 à 22:32, Bo Berglund via lazarus a écrit :

I assume MailData is the mail body...

2) How can I add Bcc recipients?


In fact I think MailData contains a mail header (with something 
likeReply-to: x...@yyy.com) followed by a mail body after an empty line:


https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Email sending program using Indy stopped working - seems to be an SSL problem

2024-01-13 Thread Jean SUZINEAU via lazarus

I am not sure but it looks like your program is using TLS v1 protocol.
I think that TLS v1 is deprecated and now your SMTP mailserver requires 
a newer version of TLS.
May be your SMTP mailserver / Windows Server 2016 has been updated 
recently ?-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Mysterious crash with Lazarus on RPi4B running PiOS bookworm 32 bit

2023-12-08 Thread Jean SUZINEAU via lazarus

May be you'll find some information in the log, something like :

cat /var/log/xrdp.log

?

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Hi-DPI tweak of components

2023-06-08 Thread Jean SUZINEAU via lazarus

Le 08/06/2023 à 11:34, Giuliano Colla via lazarus a écrit :
I believe that scaling for different DPI has been implemented with a 
shortsighted approach.


It would have been nice at the time of Delphi 1 in 1995 ... ;-)

A few weeks ago I got some havoc trying to port some code from LCL to 
Delphi 10.2 / FireMonkey when coordinates switch from Integer to Single, 
TPoint to TPointF,  array of TPoint to TPolygon...

https://github.com/jsuzineau/pascal_o_r_mapping/blob/b54853062432d7921b17a01c7b951688590a292a/delphi/pascal_o_r_mapping/03_Data/uBatpro_Element.pas#L1478

I think you can't use integer value for mm or inches.

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1)

2023-04-16 Thread Jean SUZINEAU via lazarus
Unfortunately my lazarus is installed in French , I don't have the exact 
label of the menu item in English,


But usually for this kind of problem I use "Nettoyer et construire" in 
"Exécuter" menu.


I imagine that in English it's something like "Clean and build" in "Run" 
menu.


In this dialog you can tune what compiled files you want to delete in 
the various dependencies.


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Simple ipc server fatal error on start - 0xc000007b

2023-04-01 Thread Jean SUZINEAU via lazarus
You can uses pipes too, basically just two files no need of networking, 
one for reading (delphi to freepascal), one for writing(freepascal to 
delphi).


I made last year a small app to communicate with Audacity 
(https://www.audacityteam.org/) using a specific plugin 
(https://manual.audacityteam.org/man/scripting.html).


You can find there the unit/class which manages the communication:
https://github.com/jsuzineau/pascal_o_r_mapping/blob/TjsDataContexte/tools/jsAudacity/uAudacity.pas

In my case I used pipes already created by Audacity.
For your problem I think it would be more appropriate to use FpPipe 
(although I personnaly never used it):


https://www.freepascal.org/docs-html/rtl/baseunix/fppipe.html

I think you will find something similar on Delphi 7 side.


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Simple ipc server fatal error on start - 0xc000007b

2023-03-31 Thread Jean SUZINEAU via lazarus
Considering everything will run on Windows,  it could be easy to use COM 
/ OLE Automation:


- making your delphi part as COM Server

- connecting as client in your Lazarus app, so you can call directly 
objects and functions defined in the Delphi app.


There is a bit of stuff to learn about COM to complete this but it's 
well documented and directly available on both sides, Delphi and Lazarus.


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] animated splash screen for lengthy operation, works with windows, doesn't with linux

2023-03-27 Thread Jean SUZINEAU via lazarus

Le 27/03/2023 à 14:40, Luca Olivetti via lazarus a écrit :
The problem here is, if AProc raises an exception, I cannot free the 
thread causing a leak. 


May be you can create a new exception class specifically for 
ExecWithSplash,
instantiate it and put all the information of ut.FatalException in the 
new exception instance before raising it?


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] animated splash screen for lengthy operation, works with windows, doesn't with linux

2023-03-27 Thread Jean SUZINEAU via lazarus


Le 27/03/2023 à 09:46, Luca Olivetti via lazarus a écrit :

procedure TUpdateThread.Execute;
begin
  while not Terminated do
  begin
    FWaitForm.ShowProgress;
    Sleep(30);
  end;
end;


Usually I use TThread.Synchronize to ensure that the graphic code is run 
by the main thread.


But it won't work if your main thread is blocking.

May be you should do the inverse move the lengthy operation to a 
separate thread and keep the main thread for the splash screen ?


As far as I know the graphic code must be run by the main thread.

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Microsft Access Date Select statment

2023-03-24 Thread Jean SUZINEAU via lazarus

Le 24/03/2023 à 21:48, Larry Dalton via lazarus a écrit :

Where Trans_date between beginning_date and ending_date;'


May be it would be better  with params ?

"Where Trans_date between :beginning_date and :ending_date;"

and then supposing  your TSQLQuery is declared as sqlq :

  sqlq.Params['beginning_date'].asDate:= EncodeDate( 2023, 01, 01);

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] why can not lamw add assigned components from the list to the form automatically

2023-02-27 Thread Jean SUZINEAU via lazarus

Curious behaviour.

You can find the source of the component list form in your lazarus 
installation directory in ide\componentlist.pas. I imagine something is 
failing in TComponentListForm.AddSelectedComponent, may be due to 
differences in the Designer ?


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] db grid/dataset components that only load currently visible records?

2023-02-23 Thread Jean SUZINEAU via lazarus

Le 23/02/2023 à 11:37, Luca Olivetti via lazarus a écrit :
No, that's not possible, in any case polling isn't a problem: it's the 
same application that modifies the table, and it only does the 
"refresh" when necessary.
That's exactly a use case for my orm ( 
https://github.com/jsuzineau/pascal_o_r_mapping/tree/TjsDataContexte )

It's working with the Observer design pattern, no need to poll

Unfortunately, I don't have written any documentation.

It works with SQLite, there is even a source code generator that can 
create all the boiler plate code from the SQLite database. All the 
templates of the source code generator can be customized.


Two of my last releases that uses this orm:

https://github.com/jsuzineau/pascal_o_r_mapping/releases/tag/2023_02_20_jsWorks

https://github.com/jsuzineau/pascal_o_r_mapping/releases/tag/2023_02_17_jsCompta

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] db grid/dataset components that only load currently visible records?

2023-02-23 Thread Jean SUZINEAU via lazarus

May be making a custom component based on VirtualTreeView ?
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to fix slow screen refresh of TListbox?

2022-11-20 Thread Jean SUZINEAU via lazarus
Maybe you could add a buffer in your flow of data, storing the incoming 
data ?
When a line ending arrives, you can flush your buffer to Synedit up to 
the line ending, keeping in the buffer just the end of the data not yet 
terminated by a line ending.

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] testing demorestbridge without a web server: is that possible?

2022-10-25 Thread Jean SUZINEAU via lazarus

Le 25/10/2022 à 22:04, duilio foschi via lazarus a écrit :

The box has the following string preset
http://localhost:3000/


I think you can test directly by typing this url in your browser 
(running on the same pc than demorestbridge.exe of course)



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] FPC and WebAssembly

2021-12-24 Thread Jean SUZINEAU via lazarus

Wonderful !

Thank you very much for all your work and all the work of the FPC / 
Lazarus team !


And Merry Christmas for all !

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Viewing config data in a tree style

2021-04-09 Thread Jean SUZINEAU via lazarus
In response to James Richter on fpc mailing list, I made this small 
example for displaying an selecting files in a tree. (written on Ubuntu 
and tested on Windows)


https://github.com/jsuzineau/pascal_o_r_mapping/tree/TjsDataContexte/tools/FileTree

In your case, maybe  your configuration could be converted to a JSON file ?

https://wiki.freepascal.org/fcl-json


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to hide pop-up menu before taking a screen snapshot?

2021-02-12 Thread Jean SUZINEAU via lazarus

oops: when it will be called.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to hide pop-up menu before taking a screen snapshot?

2021-02-12 Thread Jean SUZINEAU via lazarus

Le 12/02/2021 à 17:39, Bo Berglund via lazarus a écrit :

   Application.QueueAsyncCall(@CopyScreenRect(0), 0); // <== ERROR here


I'm not sure, but QueueAsyncCall just need the address of your callback:

Application.QueueAsyncCall(@CopyScreenRect, 0);

The 0 given to QueueAsyncCall will end up as the Value passed as arg 
parameter to your CopyScreenRect method when it will called.


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Creating packages - what to include?

2020-12-28 Thread Jean SUZINEAU via lazarus

Le 28/12/2020 à 18:13, Bo Berglund via lazarus a écrit :

Could you please direct me to where in Lazarus this can be done?


Usually when I add a unit uA.pas to a project (by opening the unit in 
the code and then hitting Shift+F11 or Project/Add editor file to 
project), Lazarus asks me if I want to add this path to the search path 
for units.


There can be a problem if you further create a visual component in a 
unit uB.pas that uses uA.pas.


You will need to create a package for uB.pas or add it to an existing 
package. Let's call this package pB.lpk .


In this case you can no longer add the directory of uA.pas to the search 
path, because you'll end up with duplicate ppu files. (I'm not sure of 
the error, but Lazarus and the compiler complain and advise you to use 
the package).


To address this problem, I have a specific package pA.lpk where I put 
uA.pas, and I add pA to the dependencies of pB .  (eventually, you can 
put all you common code in a single package too)


In my real code pA is the package**OD_DelphiReportEngine_Units.lpk where 
I put all my units which can run headless in console with no GUI ( 
https://github.com/jsuzineau/pascal_o_r_mapping/blob/master/pascal_o_r_mapping/2_Units/OD_DelphiReportEngine_Units.lpk 
).


And pB is OD_DelphiReportEngine_Controls.lpk where I put all my custom 
controls (visual components) 
(https://github.com/jsuzineau/pascal_o_r_mapping/blob/master/pascal_o_r_mapping/5_Controls/OD_DelphiReportEngine_Controls.lpk)


I even had a third intermediary package 
OD_DelphiReportEngine_Components.lpk for non visual components which can 
be used for example in datamodules in console apps working with 
databases ( 
https://github.com/jsuzineau/pascal_o_r_mapping/blob/master/pascal_o_r_mapping/4_Components/OD_DelphiReportEngine_Components.lpk*) 


*

*
*

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved?

2020-12-26 Thread Jean SUZINEAU via lazarus

I guess this settings are saved in the .lps file of your project.

In my own lps files, I can find the units opened in the code editor, my 
debug watches ...


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Open Source IDE Written Using Delphi

2020-12-26 Thread Jean SUZINEAU via lazarus

Sorry, I didn't notice.

I think it's my mail provider Orange/Wanadoo, the french phone operator.

Sometimes they arbitrarily insert *** SPAM *** in the subject of some 
mails before I receive them .


I should have removed it by hand.

Le 26/12/2020 à 12:15, Anthony Walter via lazarus a écrit :
Why was the subject of my submission changed with "*** SPAM ***" 
inserted?


Curious

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Open Source IDE Written Using Delphi

2020-12-26 Thread Jean SUZINEAU via lazarus

+1
I agree

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] *** SPAM *** Open Source IDE Written Using Delphi

2020-12-26 Thread Jean SUZINEAU via lazarus

It's nice that Embarcadero comes back to a Pascal IDE build with Pascal.

It's seems this IDE is compiled with Delphi 7, with .bat and .exe files, 
I imagine it's windows only ?


May be it would have been nice that they sponsor Lazarus ;-) ?

Lazarus runs on nearly every platform where you want to develop, 
Windows, x86 Linux, Raspberry, Mac ...


I imagine it would be complicated to reconcile the delphi bpl package 
concept with lazarus package concept.


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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

2020-10-29 Thread Jean SUZINEAU via lazarus

I do this too, using VirtualBox shared folders.

The physical machine is a Windows 8 with the source directory, where I 
can compile with Lazarus for Windows.


I run an Ubuntu vm  using Virtual Box, with shared folders pointing to 
my source directory. The Lazarus on Ubuntu can compile directly in this 
directory.
I just have a small problem, I need to add LCLBase to the requirements 
when I compile in Linux.
May be this this is because I don't have the same versions of Lazarus in 
Windows and Ubuntu.
A few years ago, I had go back to an older version of Lazarus on windows 
because I got curious effects with the last ones. My source code produce 
a dll used by a program written in Genero (www.4js.com).


On Windows, some threads in Genero get a high cpu activity when then dll 
is compiled with recent Lazarus. The probleme does not occur with 
Ubuntu. I haven't had time yet to find exactly why.


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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

2020-07-05 Thread Jean SUZINEAU via lazarus

Le 06/07/2020 à 00:04, Marco van de Voort via lazarus a écrit :

Op 2020-07-05 om 22:17 schreef Jean SUZINEAU via lazarus:
My post is close to off topic, but I've seen recently a paper on 
arXiv proposing to use Chinese characters for logic operators ...

When, April 1st? :-)
:-)  Not far away, April 15th according to arXiv watermarks on the 
pdf    ...

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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

2020-07-05 Thread Jean SUZINEAU via lazarus
My post is close to off topic, but I've seen recently a paper on arXiv 
proposing to use Chinese characters for logic operators ...


The keyword for AND would be 与
The  NOT :  非
The XOR:  异或
The boolean OR:  规约或
The bitwise OR:  按位或

;-)

https://arxiv.org/pdf/2004.10675.pdf

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Question about TCheckBox

2020-03-16 Thread Jean SUZINEAU via lazarus
May be you can create a new component class, based on TPanel, in which 
you place a TCheckbox with empty text and a TLabel at the position you 
want ?
TCheckbox implementation is dependant on the widget set you use ("win32" 
I guess in your case), I don't think you can tune it easily.


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus code editor improvement?

2019-11-04 Thread Jean SUZINEAU via lazarus

Le 03/11/2019 à 08:25, Bo Berglund via lazarus a écrit :


I cannot use the direct connection, though, because I am heavily
depending on being able to copy stuff across between the two systems
and I also need to have access to my other tools on the Windows
computer. So I have to stick with VNC anyway and work around the
problem.


Did you try to use X11 forwarding ?

You need to install something like XMing ( 
http://www.straightrunning.com/XmingNotes/ ), a X Window server running 
on Windows, and connect to the Raspberry Pi with a PuTTY connexion with 
X11 Forwarding enabled.


I use it sometimes to access my Ubuntu machine from a Windows 10 
machine. (in PuTTY: Connection/SSH/X11, enable X11 forwarding, X Display 
location localhost:0.0, Remote X11 authentication protocol: 
MIT-Magic-cookie)


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] [Pas2js] It's alive !

2019-09-21 Thread Jean SUZINEAU via lazarus

Wonderful !
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus