Forum Discussion

nastya_e's avatar
nastya_e
Occasional Contributor
4 years ago
Solved

Unable to load library

Здравствуйте.

Test Complete версии 9.31.3889.7

В тестах используем библиотеку dll, написанную на Delphi

pathDll := PrimApp.Path + 'Tests.dll';
defEnvironment := DLL.DefineEnvironmentByDLL(pathDLL);
defDLL := defEnvironment.DefineDLL('Tests');
lib := defEnvironment.Load(pathDLL);

На строке загрузки библиотеки ошибка: Unable to load Tests.dll library

Ошибка проявляется только на одном компьютере, на остальных работает.

Просьба помочь в решении данной проблемы

  • Hi,

     

    Weird...

    While I still think that the problem is related to something like missed (dynamic) dependency or bitness, etc. I would recommend to create Support case via the https://support.smartbear.com/testcomplete/message/ form.

    If it wouldn’t be too much to ask, I’d love if you update this thread with what you will end with with Support.

     

5 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    > На строке загрузки библиотеки ошибка: Unable to load Tests.dll library

    > Ошибка проявляется только на одном компьютере, на остальных работает.

     

    Might it be that this computer lacks some dependency dll that is required for tests.dll?

     

    • nastya_e's avatar
      nastya_e
      Occasional Contributor

      I checked with depends.exe, but not found lacking dependencies

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Hi,

         

        Weird...

        While I still think that the problem is related to something like missed (dynamic) dependency or bitness, etc. I would recommend to create Support case via the https://support.smartbear.com/testcomplete/message/ form.

        If it wouldn’t be too much to ask, I’d love if you update this thread with what you will end with with Support.

         

    • nastya_e's avatar
      nastya_e
      Occasional Contributor

      1. Yes, version of TestComplete the same as on all the others

      2. Yes, tests.dll in a folder that TestComplete can access

      3. Running TestComplete with Administrator privileges is not help