Page 1 of 1

newlisp.dll in windows 10 load error

Posted: Mon Nov 23, 2015 7:08 pm
by HPW

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.