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

Author: Larry Bradley

Posted: 2001-12-04 at 18:28:39

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

all. CLEAR ALL is the only way I have ever found (up to VFP6 SP%, at least)

to clear classes from memory.

Larry

At 03:52 PM 12/4/2001 -0500, you wrote:

>Here's my scenario:

> - Master.exe calls Child.exe

> - Child.exe copies most recent classlibs from LAN to client if ftime reports

>difference. (I've shifted to the fat client design.)

> - User exits child.exe and the last 3 lines of the main (driver) prg of that

>exe is the CLEAR CLASSLIB lines for the 3 libraries I was using.

> - I make some changes to the LAN classlib.

> - User (me in testing mode) re-enters exe, I notice that the COPY FILE lines

>fired and give the impression that the update was done (via Wait Window stmts

>in routine), BUT the client has the same old copy of the classlib! I do a

>CLEAR ALL after I make any changes in my IDE, and I can use Explorer to see

>that the ftimes are different, so why isn't it copying the files? To test

>my theory about the client app still having it in memory, I exited VFP

>so that only my app was open, opened Explorer and tried to delete the files,

>but it gave the error message: "[Error Deleting File] Cannot delete

>msmhshared: Access is denied. Make sure the disk is not full or

>write-protected and that the file is not in use." Well, the obvious answer is

>the last one: the file is in use. But the CLEAR CLASSLIBs should have taken

>care of that?!???!

> I've verified that there are no objects in memory from that classlib courtesy

>of the DISPLAY MEMORY / DISPLAY OBJECTS commands.

>

>Any ideas?

>TIA,

>

>

>

>Michael J. Babcock, MCP

>President, Central Pennsylvania Visual Foxpro User Group

>vfpmcp@hotmail.com

>"Code smarter; not harder."

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>*****************************************************

>Michael Babcock

>KePRO, Inc

>Tel: 717-564-8288

>Fax: 717-564-4188

>Internet Address: mbabcock@kepro.org

>Home Page: http://www.kepro.org

>*****************************************************

>

>Larry Bradley

Orleans (Ottawa), Ontario, CANADA

©2001 Larry Bradley