Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a FXP
Message
From
04/01/2018 01:50:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
03/01/2018 15:21:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01656909
Message ID:
01656938
Views:
65
>Once again, thanks, but still no go. My TRY/CATCH still reports that the code is in use, and can not erase the FPX.
>I have arrived at a means, but it is kind of dirty. I am erasing all the FPX in the Temp folder. If any leftover, they are removed.

I think you were hit by a garbage truck. Fox will keep all libs (vcx and fpx) open as long as there's a reference somewhere in memory, and perhaps you're just too fast, i.e. between clear class etc and erase command there isn't enough time for the references to clear. We don't really know when they do, perhaps when the routine exits, or you may need to call some obscure sys() function, dunno.

I've seen this done with vcxes - just a couple of records per class - where the generated code goes into the .methods field and then you compile class. This recompiles the whole lib, but then this was used with a limited set of classes, perhaps a dozen per classlib, and it has to create the records only once per session, so the speed wasn't an issue.

For prg classes, sys(2015) was my friend when I had to do this - and these would go into %temp%, where I erase everything older than 3 days on quit. So I wasn't even trying to delete the .fxp while it's fresh.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform