Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hi,
As I've understood CCpfcAsyncConnection.Connect() connects to existing Creo session with 4 variables and CCpfcAsyncConnection.ConnectById() connects with ID which have been used previously.
CCpfcAsyncConnection.Start() is a time consuming process, because it takes more time to open Creo and connect each time.
For the process I'm running i.e., Model renaming, regenerating and pdf generation (few simple processes), I'm only able to run the program 3 to 4 times. After that either the connection methods do not work. They both give errors. Every time I've to restart the system(PC) to start the process again.
So I was wondering if anyone has encountered this error and any solutions for it?
Thanks in advance.
To help troubleshoot:
First thing first: what error is thrown by what function?
Second did when you say "run the program 3 to 4 times" does it mean your application is looping or do you restart the application manually? to clear this out, build a simple project from an example shipped with Creo (refrain from coding anything else than the provided) and test this out to see if the issue related with your code or Creo itself.
Finally as this ever worked before in a previous version?
1. Error is thrown by function to Connect to Creo
shown in attached pic.
2. I'm restarting the application manually. I'm checking the method suggested by you.
Thanks