Forum Discussion

YeaH2211's avatar
YeaH2211
New Contributor
2 months ago
Solved

SessionCreator: Cannot initialize the Win32API plug-in: "DWL_DLGPROC" is already registered.

After updating to the latest version of TestComplete(TC) i get the following error when using the SessionCreator to start my Test Suite:

The TestComplete process has exited with the following code: 2147483647.
Cannot initialize the Win32API plug-in:  "DWL_DLGPROC" is already registered.

Is there a way to unregister "DWL_DLGPROC" from my system so TestComplete can register it right?

  • I've never seen that error before, regarding "DWL_DLGPROC"!

    I suggest you try to re-install TestComplete after performing a clean uninstall. 

    How are you running SessionCreator, and what parameters are you passing?

3 Replies

  • Not Recommended, but you can manually remove or rename the Win32API.dll in the Extensions folder of your TestComplete installation, but this may break other features that rely on dialog hooks.

    I suggest you uninstall, reboot, reinstall, and make sure SessionCreator, TestComplete and TestExecute are the exact same build number and always call that exact EXE when kicking off your run.

    Optional, if you don’t need low-level Win32 call interception, you can disable that plug-in at launch or in TestComplete UI Tools → Install Extensions… → uncheck Win32API.

    SessionCreator.exe /SkipPlugins=Win32API /project:"MyProject.pjs" /testsuite:"SmokeTests"

    If you still see exit code 2147483647 after these steps, reach out to SmartBear support with your build numbers and SessionCreator log.

    💬 If a response helped you out, don’t forget to Like it! And if it answered your question, mark it as the solution so others can benefit too.

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    I've never seen that error before, regarding "DWL_DLGPROC"!

    I suggest you try to re-install TestComplete after performing a clean uninstall. 

    How are you running SessionCreator, and what parameters are you passing?

  • YeaH2211's avatar
    YeaH2211
    New Contributor

    Works perfectly fine after uninstall and reinstall of TestComplete