Acad2008 crash on arx unload

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
Acad crashes on unloading arx application: shows message that arx have succesfully unloaded, then pauses, then just closes and tries to report an error. I've found out the problem is caused inside for loop (i.e. uncommenting solves the problem).
AcGePoint3dArray pCoord, pCoordCp;//hold all points' coordinates
...
double pointDistArray [42];
ads_point ap1, ap2;
.
...
for(inti=0; i<pCoord.length(); i++)//Acad crashes on unload arx also..
{
//pCoord gets damaged within here..?
ap2[0] = pCoord.at(i).x;
ap2[1] = pCoord.at(i).y;
ap2[2] = pCoord.at(i).z;
pointDistArray[i] = acutDistance(ap1,ap2);
acutPrintf(_T("\nDistance from base point to point %u is %f."), i, pointDistArray[i]);
}
...
Is conversion from AcGePoint3d to ads_point correct?
Debugging shows the pCoord array's physical length gets damaged after the loop.
Any thoughts?
Regards,
DL