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

ProEngineerEnd() causes creo crash

ProEngineerEnd() causes creo crash

Hello

 

I am using batch file to start Creo from command prompt. In user_initialize(); I am just opening model from path using proMdlLoad(). Update one parameter's value and save model. Till this time, it works fine. Post this, ProEngineerEnd() causes Creo to crash. 

 

Any idea would be of great help.

 

Regards

Ketan

Tags (2)
13 REPLIES 13

Re: ProEngineerEnd() causes creo crash

What has changed since the last time it successfully ran?

OS upgrade?

Creo version upgrade?

System patches?

Visual C/C++ runtime changes?

 

Start looking at those changes to determine what may have changed.

Re: ProEngineerEnd() causes creo crash

Nothing... This is new development and just addition of this API into code either crashes or hangs Creo... I am having Creo 4.0 M030

Re: ProEngineerEnd() causes creo crash

I just commented all code. From command prompt also, not passing any argument. Kept only one API into user_initialize and that API is ProEngineerEnd(). 

 

This also leads to crashing of creo randomly and traceback log suggest EXCEPTION_ACCESS_VIOLATION error.

 

Another line which could be helpful into traceback log is :

ERROR: Module information could not be found, GetLastError: 1114 (Address: 0000000000000000)

 

Any idea on how to proceed further? 

Re: ProEngineerEnd() causes creo crash

You call this in asynchronous mode?

Re: ProEngineerEnd() causes creo crash

Yes it is... Created exe for batch processing but Creo was crashing just at ProEngineerEnd API... Finally come to know that even if entire code is commented out, this single API causes Creo to crash...

Re: ProEngineerEnd() causes creo crash

Command line Creo argument is used to open Creo and user_initialize takes two arguments one is path for model and another is value for parameter...

Once Creo is open, first API is to load model , then display it , update parameter value, save model and close Creo... Rest all was working fine and commented also, but only ProEngineerEnd is causing crash.

Re: ProEngineerEnd() causes creo crash

Hmm, sorry but you start Creo or connect to Creo via a Toolkit call?
Using a bat and starting Creo and using user_initalize is not asyn, you need an event loop.

If don’t use the connect or start call, you will crash, because you have no handle.

In batch mode only some event loop commands are necessary, because you want to exit after code has been completed.

Re: ProEngineerEnd() causes creo crash

That's the good idea.. would try to implement that way... Create simple exe which would accept one argument for parameter value and another for path of model. All this would be done in user_initialize along with starting Creo and closing creo with Proengineerend.

This could be a definite solution and would definitely give it a try... Thanks for this solution but I still doubt about Creo crash with Proengineerend API... Why I feel so :??

I have seen that there are so many applications running like the way i mentioned in query... Those applications are in production environment. It was developed on Creo 3.0 M120 as well as Creo 2.0 M080.

Additionally, API Proengineerend don't require any argument and I guess document also does not mention that you can close Creo session which was started with toolkit API.

Still I would give a try what you mention... But ground line is that methodology I mentioned earlier was working with Creo 2.0 and Creo 3.0 with so many apps.

Re: ProEngineerEnd() causes creo crash

Yes, sorry, you are right, you can use this call in both modes. In this case you may have to search for a memory leak. But you can still try the asynchronous mode, because this may help to figure out the status.