Ask a Question

tcCEFHook.dll load error 1114 (ERROR_DLL_INIT_FAILED)

SOLVED
Tora-Bora
Occasional Contributor

tcCEFHook.dll load error 1114 (ERROR_DLL_INIT_FAILED)

"Compile Application With TestComplete Library":

HMODULE tcHook = LoadLibraryW(L"tcCEFHook.dll"); return NULL and GetLastError returns 1114 (ERROR_DLL_INIT_FAILED).

Tried with Delphi, Embarcadero Borland C++, Visual Studio 2015 C++.

10 REPLIES 10
tristaanogre
Esteemed Contributor

What version of TestComplete are you using?  What CEF version are you using?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Tora-Bora
Occasional Contributor

TestComplete: 11.31.2420.7

CEF 3.2454

 

What conditions have to be met, for successful loading? 

 

 

 

tristaanogre
Esteemed Contributor

I'm assuming you've followed the following?

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/preparing-browsers/cef.html


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Tora-Bora
Occasional Contributor

Sure, there are two steps: first is "// Load the TestComplete automation library",

second "// Initialize CEF" . I'm not able to make first step:) I couldn't load library. 

tristaanogre
Esteemed Contributor

Note that the instructions say to either copy the DLL to your application folder or reference it at the current location.  I understand this to mean that, if you are copying the file, then you can use the code as is in the sample... if you aren't then you need to provide the full path in your application code.  Double check the location of the DLL file itself and make sure you're pointing to the appropriate location.

 

Beyond that... I'm not going to be much help.  That's my best guess based upon the available documentation.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Tora-Bora
Occasional Contributor

Any chances to get tcCEFHook sources? It seems there is an error occured on DLLMain in the library. Probably the library requires special environment? 

Tora-Bora
Occasional Contributor


@tristaanogre wrote:

Note that the instructions say to either copy the DLL to your application folder or reference it at the current location.  I understand this to mean that, if you are copying the file, then you can use the code as is in the sample... if you aren't then you need to provide the full path in your application code.  Double check the location of the DLL file itself and make sure you're pointing to the appropriate location.

 

Beyond that... I'm not going to be much help.  That's my best guess based upon the available documentation.


If there was a wrong path it would be another error. The 1114 says that error occured in the library.

tristaanogre
Esteemed Contributor

I doubt that SmartBear will give you the source for the DLL.

However, a quick google search of your error code notes that this error code does come back, at times, if the library file itself is not found.  I'd still check that line and make sure that you're reference to the actual DLL file is pointing to the actual file location (either copied within your application path or pointing to the TestComplete location).

@HKosova, any thoughts?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
HKosova
SmartBear Alumni (Retired)

Hi Tora-Bora,

 

CEF testing requires the Web module - does your license include it?

 

We recommend using automatic instrumentation for CEF apps, as described in "option 1" here. Can you do that instead of compiling with tcCEFHook.dll? The error should not occur in this case.

 


Regarding the 1114 error, the devs say the following:

 

The 1114 error when loading tcCEFHook.dll is expected in the following cases:

  • tcCEFHook.dll is loaded from a location other than its original location (<TestComplete>\Bin\Extensions).
  • CEF app is running on a computer without TestComplete installed.

The error can be ignored and it should not affect the app functionality or testability.

 

To avoid the error you can:

  • Start TestComplete before launching the tested CEF app, or
  • Load tcCEFHook.dll from its original location, e.g.
    LoadLibraryW(L"C:\\Program Files\\SmartBear\\TestComplete 11\\Bin\\Extensions\\tcCEFHook.dll")

    Make sure to use the DLL version that corresponds to your app bitness (32-bit or 64-bit).


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: