How to cleanup after running a ActiveX-Lisp program?

Rakesh Rao

Usenet Archive
Joined
Jan 9, 2000
Messages
134
Reaction score
0
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
 

Latest threads

Back
Top