lnet icon indicating copy to clipboard operation
lnet copied to clipboard

Example visual/tcpudp/testnet seems no longer working with lazarus 2.2.4 64 bits windows

Open JurassicPork opened this issue 2 years ago • 6 comments

Hello, when i try to load the Examples/visual/tcpudp/testnet project in Lazarus 2.2 i have a big crash because the property for TLSSLSessionComponent/Method in lfm file doesn't exist.

JurassicPork avatar Mar 27 '23 09:03 JurassicPork

using a file editor removed the method setting from the lfm (around line 213) this will make it load. Then in line 234 of the .pas file change fnet,socketnet tro LTCP.socketnet to make it compile

But after all that the app will not work, some crash in the ssl session creation.

CFTechno avatar Sep 12 '23 12:09 CFTechno

I suspect this has to do with SSL/openssl compatibility, but I don't have a windows to test with anymore.

almindor avatar Sep 12 '23 16:09 almindor

Is there something i can do to help in order to solve it? I also have an old version and that one works correct.

CFTechno avatar Sep 13 '23 14:09 CFTechno

unit lNetSSL;

comment out from line 501 (if Length(FKeyFile) > 0 ...) to line 515 (end of 514 is raise Exception.Create('Error creating SSL CTX: ..)

Then, here on my Windows PC, the example compiles and runs.

I know nothing about what these lines of code shall do, so be careful .. ;-)

PeterOnDrums avatar Dec 04 '23 12:12 PeterOnDrums

AFAIK there is a problem with SSL library compatibility on windows. If you do not use SSL (https/ftps etc.) then doing this is fine but if you do it'll break.

I don't run windows at all anymore, so I'm unable to help I'm afraid.

almindor avatar Dec 04 '23 16:12 almindor

Thanks for this hint about SSL.

In my case I only access my LAN. So it works for me. Maybe someone else is able to fix this ..

PeterOnDrums avatar Dec 04 '23 19:12 PeterOnDrums