A bug problem of clone?

Discussion in 'AutoCAD' started by conqueror, Dec 3, 2004.

  1. conqueror

    conqueror Guest

    Hi, everyone,

    I have a question about the function of AcDbObject::clone(). In my application regions are cloned many many times by this function as follows:

    void function(AcDbRegion* pRegion1,AcDbRegion* pRegion2)
    {
    AcDbRegion* pRegion1_clone,*pRegion2_clone;
    pRegion1_clone=(AcDbRegion*)pRegion1->clo ne();
    pRegion2_clone=(AcDbRegion*)pRegion2->clone();
    pRegion1_clone-> ;booleanOper(AcDb::kBoolIntersect,pRegion2_clone);
    delete pRegion1_clone;
    delete pRegion2_clone;
    return;
    }

    The problem is that the page file of the computer becomes larger and larger when this function is called too many times so that the hard disk is almost full at last. Who can explain it to me? The problem has disturbed me long time. Thanks in advance.

    Smart
    2004-12-03
     
    conqueror, Dec 3, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.