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.
What has changed since the last time it successfully ran?
Creo version upgrade?
Visual C/C++ runtime changes?
Start looking at those changes to determine what may have changed.
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?
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.