Author: Russell, Stephen
Posted: 2001-12-04 at 15:08:45
How are you writing over a file that is in use?
I would enhance Master.exe before it instnaciates any of the classes to run
through some good old PRG code to update the librarys.
__Stephen
-----Original Message-----
From: Michael Babcock [mailto:mbabcock@kepro.org]
Sent: Tuesday, December 04, 2001 2:53 PM
To: Multiple recipients of ProFox
Subject: Classlib not releasing from memory and no objects showing in
memory
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
*****************************************************