How to cleanup after running a ActiveX-Lisp program?

Discussion in 'AutoCAD' started by Rakesh Rao, Jan 26, 2004.

  1. Rakesh Rao

    Rakesh Rao Guest

    I have written a fairly long ActiveX-Lisp program that opens multiple
    drawings in Autodesk Map 2002, makes a selection set in each drawing and
    exports the object data to an ASCII file.

    Everything works beautifully first time but the second time, I run the
    program causes AutoCAD to bomb out. Even if I do not run the program
    second time, just switching to one of the open drawings (that my program
    opened) itself causes AutoCAD to crash.

    I suspect that this has something to do with freeing up the memory after
    the program has run.

    So, the question is - What is the correct procedure to follow regarding
    cleanup after an ActiveX-Lisp program? Does every single object need to
    be fed to the (vlax-releae-object..). Is there anything else needed? gc?

    Any help is appreciated.

    - Rakesh

    --

    AutoCAD customization for Engineering/Mapping/GIS
    Get GeoTools @ http://www.4d-technologies.com/geotools
    Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
    FREE downloads : http://www.4d-technologies.com/techcenter
    </PRE>
     
    Rakesh Rao, Jan 26, 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.