Re: Classlib not releasing from memory and no objects showing in memory

Author: Michael Babcock

Posted: 2001-12-05 at 10:26:32

Hi Ed,

I realize that it wouldn't release if any instances were still in use, but

using DISPLAY MEMORY and DISPLAY OBJECTS, it showed that NO classes were still

in use=2E Given that nothing still live from the classlib, this gives credence

to Larry's perspective=2E

--Michael

>>> "ed@leafe=2Ecom" 12/05/01 10:10AM >>>

On Wednesday, December 5, 2001, at 09:33 AM, Michael Babcock wrote:

>> Bad news, Michael - CLEAR CLASSLIB does not seem to work reliably, if >> at

>> all=2E CLEAR ALL is the only way I have ever found (up to VFP6 SP%, at >>

least)

>> to clear classes from memory=2E

>

> I hope M$ fixed that in VFP7=2E Bummer! Thanks for the confirmation, >

Larry=2E

It's really not a bug=2E If there is even a single reference to an instance of

a class, CLEAR CLASS or CLEAR CLASSLIB will not remove the class definition

from memory=2E The reason CLEAR ALL works is that it removes all instances of

all classes, too=2E

You need to figure out why there are still instances of your class in

existence=2E

=20=

=20=

=20=

=20=

=20=

=20=

=20=

=20=

=20=

=20=

=20=

=20=

=20=

=20=

=20=

=20=

*****************************************************

Michael Babcock

KePRO, Inc

Tel: 717-564-8288

Fax: 717-564-4188

Internet Address: mbabcock@kepro=2Eorg

Home Page: http://www=2Ekepro=2Eorg

*****************************************************

©2001 Michael Babcock