Ask a Question

Unable to load library

SOLVED
nastya_e
Occasional Contributor

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

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

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


5 REPLIES 5
Marsha_R
Champion Level 3

Is the version of TestComplete the same on the error machine as on all the others?

 

Is the tests.dll in a folder on the error machine that TestComplete can access?

 

Try running TestComplete with Administrator privileges on the error machine and see if that helps.

https://support.smartbear.com/testcomplete/docs/general-info/configuring/testing-under-admin-account...

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


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?

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
nastya_e
Occasional Contributor

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


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.

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: