Memory leak?

Memory leak?

Anonymous
Not applicable
251 Views
1 Reply
Message 1 of 2

Memory leak?

Anonymous
Not applicable
Has anyone seen memory leaks in VBA?

I inherited a lisp program and converted it to VBA for AutoCAD 2006. The program compares two sets of entities (around 200,000 each), but when I run it, I can see the memory use climb and the program eventually bombs.

As a test, I converted the program to VB 6.0 and when I run it, the memory stays pretty steady, no memory leaks. Of course, the program runs quite a bit slower, so I'd like to get the VBA working.

Has anyone seen similar things? Any solution?
TIA
0 Likes
252 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
You can sometimes see this occur if you are not releasing the entity each time you are finished with it:

set entity=nothing

Without seeing the code, I can't help much more than that.
0 Likes