Skip to main content
7-Bedrock
Oct 13, 2021 5:14 PM UTC
Solved

Getting XToolkitGeneralError when creating new connection with VB API

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.
    7-Bedrock
    Oct 14, 2021 6:07 PM UTC

    The error has gone away as misteriously as it came.

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

    3 replies

    24-Ruby IV
    Oct 14, 2021 11:51 AM UTC

    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

    Translate
    7-Bedrock
    Oct 14, 2021 6:06 PM UTC

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

    Translate
    MV_87409077-BedrockAuthorAnswer
    7-Bedrock
    Oct 14, 2021 6:07 PM UTC

    The error has gone away as misteriously as it came.

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

    Translate