Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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
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.
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.
You need to set PRO_COMM_MSG, please check for the correct name, without this you can’t start Creo. For your batch stuff a EventProcess call before or after each toolkit call should be enough.
Hello Ketan_Lalcheta,
If RPN's response answers your question, you could mark that post as an Accepted Solution. Doing this could greatly help other community members with the same question find their answer quickly. Thank you both your participation on the PTC Community!