Author: Michael Babcock
Posted: 2001-12-05 at 09:33:52
I hope M$ fixed that in VFP7=2E Bummer! Thanks for the confirmation, Larry=2E
Michael J=2E Babcock, MCP
President, Central Pennsylvania Visual Foxpro User Group
vfpmcp@hotmail=2Ecom
"Code smarter; not harder=2E"
>>> "lhbradley@igs=2Enet" 12/04/01 06:36PM >>>
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
Larry
At 03:52 PM 12/4/2001 -0500, you wrote:
>Here's my scenario:
> - Master=2Eexe calls Child=2Eexe
> - Child=2Eexe copies most recent classlibs from LAN to client if ftime reports
>difference=2E (I've shifted to the fat client design=2E)
> - User exits child=2Eexe 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=2E
> - I make some changes to the LAN classlib=2E
> - 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=2E Make sure the disk is not full or
>write-protected and that the file is not in use=2E" Well, the obvious answer
is
>the last one: the file is in use=2E 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=2E
>
>Any ideas?
>TIA,
=20=
=20=
=20=
=20=
=20=
=20=
=20=
=20=
=20=
=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
*****************************************************