Hi Sergei,
Curious...
I had put the new directory last in the path, but I've just retried with it in first place and that doesn't make any difference. Dependency Walker also finds the libexpat.dll in the right place (not from the path) but then it is not loading it in the same way as windows so doesn't guarantee the same results.
I've run Process Monitor and looked at what is happening during the regsvr32.exe call. Here it is clear that xerces-c_2_8.dll is being loaded from elsewhere in my path (no problem caused by that because it happens to be the same version) and then libexpat.dll is loaded from my path, not from the local directory.
Is safedllseachmode enabled on your machine? I'm not sure what other parameters control the search path, but some of them are run-time options so would need to check the way that LoadLibrary is being called in GDAL2?
cheers,
Ben
Curious...
I had put the new directory last in the path, but I've just retried with it in first place and that doesn't make any difference. Dependency Walker also finds the libexpat.dll in the right place (not from the path) but then it is not loading it in the same way as windows so doesn't guarantee the same results.
I've run Process Monitor and looked at what is happening during the regsvr32.exe call. Here it is clear that xerces-c_2_8.dll is being loaded from elsewhere in my path (no problem caused by that because it happens to be the same version) and then libexpat.dll is loaded from my path, not from the local directory.
Is safedllseachmode enabled on your machine? I'm not sure what other parameters control the search path, but some of them are run-time options so would need to check the way that LoadLibrary is being called in GDAL2?
cheers,
Ben