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

Sketcher/Section window crashes (Pro/E 2001)

abhishek.jaiswa
1-Newbie

Sketcher/Section window crashes (Pro/E 2001)

I am trying to provide a sketcher interactively using the following
code in the function which is called when I click a custom added
menuButton named Sketcher.

int SketcherClick()
{
ProSection section;
ProName wname;
int windowid;
ProError status;

status = ProSection2DAlloc (§ion);
printf("\n ProSection2DAlloc status %d",status);

ProStringToWstring (wname, "demo");

status = ProSectionNameSet (section, wname);
printf("\n ProSectionNameSet status %d",status);

status = ProObjectwindowCreate(wname,PRO_2DSECTION,&windowid);
printf("\n ProObjectwindowCreate status %d",status);

status = ProWindowActivate(windowid);
printf("\n ProWindowActivate status %d",status);

return 1;
}


Everthing works fine here. Even a new Sketch in a new window is
opened. However when one tries to draw just one line - proe craches
regardless of the exe or dll mode.
However if one draws a rectangle or circle it works perfectly well. But as
soon as a line is drawn and middle button is pressed, proe crashes.

When proe craches the error returned is -11 i.e.PRO_TK_COMM_ERROR

I can't understand what the problem is and how to resolve it.
Please help us in this regard

Thank you
Abhishek

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