Skip to main content
7-Bedrock
October 13, 2021
Solved

Getting XToolkitGeneralError when creating new connection with VB API

  • October 13, 2021
  • 2 replies
  • 2760 views
I am using Creo Parametric - Release 6.0 (connected) 6.0 6.0.4.0

Getting XToolkitGeneralError when doing asyncConnection = (New CCpfcAsyncConnection).Start(startArgs, ".").

Already made sure the env vars are set as follows :
PROE_INSTALL_PATH=C:\PROGRA~1\PTC\CREO50~1.0\PARAME~1
PRO_COMM_MSG_EXE=C:\PROGRA~1\PTC\CREO50~1.0\COMMON~1\X86E_W~1\obj\pro_comm_msg.exe
PRO_DIRECTORY:\PROGRA~1\PTC\CREO50~1.0\COMMON~1
PTCNMSPORT=11239

Also deleted the following reg entries so they would get reconstructed:
a) HKEY_CURRENT_USER\Software\PTC\pmap_mutex_list
b) HKEY_CURRENT_USER\Software\PTC\volatile_portmap



Here are the errors that I faced
XToolkitGeneralError, Im also getting "Creo Agent is not available : CREO Agent did not initialize correctly" when launching CREO itself, not sure if its related.
    Best answer by MV_8740907

    The error has gone away as misteriously as it came.

    I will close this as I have now different issues that also need resolution!

    2 replies

    24-Ruby III
    October 14, 2021

    Read this article - "Error: pfcExceptions::XToolkitGeneralError received while trying to start or connect to a Creo Parametric session through VB API application": https://www.ptc.com/en/support/article/CS46034

    7-Bedrock
    October 14, 2021

    Thank you for pointing it out, but the resolution indicated on this article I had already implemented without success (see above).

    MV_87409077-BedrockAuthorAnswer
    7-Bedrock
    October 14, 2021

    The error has gone away as misteriously as it came.

    I will close this as I have now different issues that also need resolution!