Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting a FXP
Message
De
04/01/2018 01:50:04
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
03/01/2018 15:21:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01656909
Message ID:
01656938
Vues:
66
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform