|
Mike Pall wrote:
- The Windows loadlib problems (GetModuleFileNameA, current directory in search path) are still unresolved.
I thought this was resolved as it can be. Differnt versions of Windows behave differently. MS induced this change via a security patch which changes behaviour that was introduced by a security upgrade. There is no guarantee that MS will not again change this behaviour. The solution to this problem is to avoid internal path searches which means providing a LUA_CPATH (package.cpath) default that uses absolutized paths based on executable (GetModuleFileName) and/or current directory (GetCurrentDirectory) . Do not leave it to the OS to choose which directory to search. Specify the absolute search path in Lua. This is also much quicker. This means having a LUA_CPATH to look for something that is '!' path or CWD relative *first*. I hope I explained this OK. David Burgess.