Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Classlib not completely clearing...
Message
From
17/12/2002 16:19:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Classlib not completely clearing...
Miscellaneous
Thread ID:
00733864
Message ID:
00733864
Views:
55
This message is similar to one I posted recently about an EXE that I couldn't get to exit memory completely, resulting in a "File access denied" error when I would try to replace the EXE with a new version. However, this one has a new twist.

Even if I try to use a classlib that resides within the EXE from another VFP application, I am also unable to subsequently replace the EXE without a reboot.

Here's the code where I'm using the classlib in the calling EXE:

LOCAL lcBrdClass, lcBrdCastEXE, oMessage, llMessagesFound
lcBrdClass = "BRDCAST"
lcBrdCastEXE = "BRDCAST.EXE"
SET CLASSLIB TO ( lcBrdClass) IN ( lcBrdCastEXE) ADDITIVE
oMessage = CREATEOBJECT( 'Message')
llMessagesFound = oMessage.GetUnReadMessages()
oMessage.CloseTables
RELEASE oMessage
CLEAR CLASS oMessage
CLEAR CLASSLIB BRDCAST
IF llMessagesFound
oApp.RunBroadcast( 'UNREAD')
ENDIF

In cast it matters, the EXE in question occasionally needs to be able to download a newer version of itself, exit, replace the old version with the new and then restart. (A seperate launcher application is run in it's own thread that waits for the initial app to close and then performs the replacement and relaunches the new version.)

Any help would be much appreciated.
"The most beautiful experience we can have is the mysterious ; it is the fundamental emotion which stands at the cradle of true art and true science." - Albert Einstein
Next
Reply
Map
View

Click here to load this message in the networking platform