cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Creo Session Access Violation

dstaves
1-Visitor

Creo Session Access Violation

Hi Everyone,

I am writing a program that allows users to trigger events in creo from an external application. I am having difficulty, however, getting a pointer to the Creo session to execute the actions.

For example, after a user clicks on the button to create a new part, I am able to get a pointer to the session object using pfcGetProESession(), but when I try to call OpenFile() I get an AccessViolation error.

When I run these same commands after clicking on a button from Creo, however, it works.

Is there a command I need to call to allow me to use the Creo session when triggered by an outside event?

Thanks for your help,

Dan

2 REPLIES 2
dstaves
1-Visitor
(To:dstaves)

Not really an answer, but I was able to get around this problem by using "Asyncronous Mode."

Hi @dstaves

 Some times the access violation error occurs in asynchronous mode due to the platform configuration changes.

Make sure your asynchronous application and the creo having same version (x64bit or x86bit)

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
Announcements


Top Tags