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

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

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


1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: Unable to load 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.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

5 REPLIES 5
Marsha_R
Community Hero

Re: Unable to load library

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...


Marsha_R
[Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
nastya_e
Occasional Contributor

Re: Unable to load library

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
Community Hero

Re: Unable to load library

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 Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
nastya_e
Occasional Contributor

Re: Unable to load library

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


AlexKaras
Community Hero

Re: Unable to load 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.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: