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

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

my Pro/toolkit application makes ProE freeze and crash

Emilie
1-Newbie

my Pro/toolkit application makes ProE freeze and crash

Hello,

 

I'm trying to use a very simple 64bits Pro/toolkit application as synchronous mode (multiprocess to be precise) and connect to ProE (5.0, 64bits).

 

Everything compile fine on Visual 2008 Express.

I created a protk.dat.

I launch ProE and do Tools/Auxiliary Applications and I Register my protk.dat.

When I start it, it freezes and then crashes.

 

Do you have an idea? Did I forget anything?

 

 

I'm wondering whether my protk.dat is good, here it is :

 

name ProETest

startup spawn

exec_file C:\ProETest\ProETest\x64\Debug\ProETest.exe

text_dir C:\ProETest\text

allow_stop TRUE

REVISION 18

end

 

 

My project is very simple, here is what I have in my main.cpp :

 

#include "ProToolkit.h"

#include "ProCore.h"

 

extern "C" int user_initialize()

{

ProError err;

err = ProEngineerStatusGet();

if(err != PRO_TK_NO_ERROR)

{

printf("error %i.\n",err);

}

else

{

printf("no error.\n");

}

return(0);

}

 

extern "C" void user_terminate()

{

 

}

 

Thank you for your help!!

 

Emilie


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1
Emilie
1-Newbie
(To:Emilie)

I didn't load a model, that's why it didn't work.

And it seems to me that i have to put a pro/toolkit function at the begining of user_terminate() also.

Top Tags