risoflora / brookframework

Microframework which helps to develop web Pascal applications.
https://risoflora.github.io/brookframework
GNU Lesser General Public License v2.1
239 stars 54 forks source link

win11, lazarus, brookframework, libsagui-3.dll with tls doesn't work? #53

Closed yxh38658 closed 8 months ago

yxh38658 commented 8 months ago

I tried to build the demo project of brookframework/Examples/Console/FPC /hellohttpsrv.lpr with lazarus v3.0 on win11 and having libsagui-3.dll(tls_win_amd64 version) in the project folder.

An error happend with the message: libsagui-3.dll is not loaded. It happened in libsagui.pas, line 1014: GHandle := SafeLoadLibrary(AName); GHandle is 0 after calling the SafeLoadLibrary function.

I tried to put the libsagui-3.dll file in project folder and/or windows/system32. But I always got that error.

I then download libsagui-3.5.0-windows_amd64.zip and put the libsagui-3.dll without tls in the project folder. The program works!

Something wrong when load libsagui tls_win_amd64 version dll?

image image

silvioprog commented 8 months ago

Hey @yxh38658, to work with TLS support, you will need to download the DLLs from this package and put alongside Sagui DLL.

yxh38658 commented 8 months ago

It works! Thank you.