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.
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);
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
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.