newlisp.dll in windows 10 load error

Q&A's, tips, howto's
Post Reply
HPW
Posts: 1377
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

newlisp.dll in windows 10 load error

Post by HPW »

Hello,

I noticed that some of my apps using newlisp.dll throw an error running under win 10.

After getting access to win 10 on my sons laptop I dig into the problem and find the reason:

Doing this pascal-code in my delphi host app does give trouble under win 10:

Code: Select all

DllHandle := LoadLibrary( Pchar( 'newlisp.dll' ));
Giving only the dll-name let the system search in the search-hierachy of windows.
This works on all windows before windows 10.
Because of security concerns MS seems to block now this loading.

The workaround/solution here is to give a full path and filename to LoadLibrary.
So I load the dll now from the same directory as the host-exe.

Regards

Hans-Peter
Hans-Peter

Post Reply