Forum Discussion

medmonds's avatar
medmonds
Occasional Visitor
2 days ago

Is there a way to disable the usage of the tcMSVCHook.dll?

For some unknown reason, my Windows-based tested application (64 bit, WPF) throws unhandled exceptions that point to this .dll whenever I try to run or even record test steps. The only way I could get this to stop through TestComplete's settings was by disabling the Open Application functionality for my application.

But that wasn't a real solution as we need some of the Open Application features in our testing. So I had to workaround it by renaming this .dll such that TestComplete can't find it, and now we are able to run/record tests without issues.

Seeing as this solution is a bit "hacky", I wanted to see if anyone might know of a more official way to disable these hooks in TestComplete's settings.

Or if anyone can offer insight on if there are any drawbacks to doing my workaround, that would be super helpful as we've seen no issues so far but worry something could come up later.

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Community Hero
    medmonds wrote:

    disabling the Open Application functionality for my application.

    But that wasn't a real solution as we need some of the Open Application features in our testing.

    Hi,

     

    Based on the dll name and the fact that TC can operate without it, it is my guess that this dll relates to C/C++ Open Applications functionality. If your tested application is not C-based, you may try to disable C-related extensions (File|Install Extension... main menu) and check if it helps.

    Also I would recommend to create Support ticket via Help|Contact Support main menu (you will have to request ticket creation and describe your problem in the chat window, not via some sort of form).