Cannot open OpenSlide.dll

Hi Team,

I built the latest version of Orthanc and downloaded latest version of OpenSlide library.
I want to convert svs to DICOM WSI.
I get the load library error, see below,

C:\Orthanc\OrthancWSI-1.1\Applications\Build\Debug>OrthancWSIDicomizer.exe --openslide=C:\Orthanc\openslide-win64-20221217\bin\libopenslide-0.dll C:\Orthanc\TestFiles\CMU-1-JP2K-33005.svs
W0115 10:11:20.470837 ApplicationToolbox.cpp:56] Performance warning in whole-slide imaging: Non-release build, runtime debug assertions are turned on
W0115 10:11:20.473827 ApplicationToolbox.cpp:251] Orthanc WSI version: 1.1
E0115 10:11:20.479810 SharedLibrary.cpp:50] LoadLibrary(C:\Orthanc\openslide-win64-20221217\bin\libopenslide-0.dll) failed: Error 126
E0115 10:11:20.481806 Dicomizer.cpp:1122] Terminating on exception: Error while using a shared library (plugin)

Kindly help me.

Thanks,

Hi,

Error 126 means the DLL can not be loaded, usually because:

  • it’s not at the right place
  • it’s not the same 32/64 bits architecture as the process calling it
  • the user does not have access to it
    If this does not help, check what happens with Process Monitor.

BTW, do you know that these tools are included in the Windows installers ?

HTH,

Alain