Message 1 of 7
acedCommand() problems
Not applicable
10-30-2001
06:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Why would something as simple as this crash AutoCAD
(all releases I've tried, 2000-2002):
void myfunc()
{
ads_point center;
acedGetPoint(NULL, "\nEnter a point: ", center);
acedCommand(RTSTR, "._CIRCLE", RT3DPOINT, center, RTNONE);
}
void InitApplication()
{
AddCommand("TEST_GROUP", "TEST", "TEST", ACRX_CMD_MODAL, myfunc);
}
The code starts the CIRCLE command, supplies the
center point, and then drops the user off at the
prompt for the radius and, KABOOM.
(all releases I've tried, 2000-2002):
void myfunc()
{
ads_point center;
acedGetPoint(NULL, "\nEnter a point: ", center);
acedCommand(RTSTR, "._CIRCLE", RT3DPOINT, center, RTNONE);
}
void InitApplication()
{
AddCommand("TEST_GROUP", "TEST", "TEST", ACRX_CMD_MODAL, myfunc);
}
The code starts the CIRCLE command, supplies the
center point, and then drops the user off at the
prompt for the radius and, KABOOM.