- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been trying to figure this out for a few days now and have been having some problems. I tried to do some research Run-Time Check Failure #2 - Stack around the variable 'name'' was corrupted and The "Big Picture" - Interview with Jim Quanci (Autodesk) but neither really helped me too much. The ObjectArx & Dummies seemed to point to the fact that I had a memory leak but if that was the case I am not sure how exactly.
void drawCable(){
AcDbPolyline *pLine = new AcDbPolyline();
int vertexPoint = 0;
AcGePoint2d tempPoint;
int result = acedGetPoint(NULL,_T("\nSelect the first point:"),asDblArray(tempPoint));
while(result == RTNORM){
pLine->addVertexAt(vertexPoint,tempPoint);
vertexPoint++;
result = acedGetPoint(NULL,_T("\nSelect the point:"),asDblArray(tempPoint));
}
postToDb(pLine);
pLine->close();
}
Any advice would be greatly appreciated. Thanks in advance like usual.
Solved! Go to Solution.

