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

ProToolktiDllLoad

ptc-5830787
1-Newbie

ProToolktiDllLoad

Hello,

someone use ProToolktiDllLoad() in WF4 ?

A Tk appl. (dll mode) uses/need a helper dll (Contains TK-Code e.g. getCSysName().

The appl loads this helper dll inside user_initialize() using ProToolkitDllLoad().

The TK-Appls is started via Tools/AuxAppl./start.
Later on the TK_Appl calls a function in the helper dll - for example
getCsysName().

This function calls ProModelnameGet() which returns PRO_TK_COMM_ERROR (-11).
and the name of the csys is ".

If I stop the TK Appl via Tools/AuxAppl and start it again the function call
ProModelnameGet() works as designed. The reason may be, that the helper dll
is this case is alread running ( ProToolkitDllLoad() returns PRO_TK_E_IN_USE).

More info:
The helper dll is unlocked and contains a user_initialize() which
creates a logfile, to control whether the user_initialize was invoked.

Regardless the helper dll loadpoint contains a protk.dat or not, the
effect is the same

Any help ? Thanks in advance

Mit freundlichen Grüßen

Norbert Schultheis

AUDI AG
I/FP-36
85045 Ingolstadt
Tel +49-841-89-90389
Fax +49 (0) 841 89-38115

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.
2 REPLIES 2

hi

First check toolkit task application is loading & unloading correctly .for this make 4th arg of ProToolkitDllLoad to PRO_B_TRUE . so you can see this task appstatus in auxilary application list,make sure to use ProToolkitDllUnloadalso .I think this will solve your problem .

Regards ,

Ajoy Mathew

Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration