[fpc-pascal] how to loadlibrary in a specific folder in windows 64?

2019-02-08 Thread Dennis
I am using FPC 3.0.4 Lazarus. I tried to use synapse with ssl and the unit ssl_openssl_lib 's initialization    runs InitSSLInterface    which calls   SSLLibHandle := LoadLib(DLLSSLName);   SSLUtilHandle := LoadLib(DLLUtilName); where the var are defined as   DLLSSLName: string = 'sslea

Re: [fpc-pascal] how to loadlibrary in a specific folder in windows 64?

2019-02-08 Thread Marcelo Rocha
try using LoadLibraryEx with the flag LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR Em sex, 8 de fev de 2019 às 08:26, Dennis escreveu: > I am using FPC 3.0.4 Lazarus. > I tried to use synapse with ssl and the unit ssl_openssl_lib 's > initialization > runs InitSSLInterface > which calls >SSL

Re: [fpc-pascal] Question: Is there a global callback, when a thread gets terminated?

2019-02-08 Thread Martin Frb
On 07/02/2019 16:03, George Bakhtadze wrote: As an option, you can store all thread-specific data within a thread-safe data structure (Map) instead of threadvars and free that structure in unit's finalization. Yes, but you can end up with a lot of data for dead threads, if an app create many sh