Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class defined in execscript() vanishes
Message
De
28/09/2007 09:49:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01257351
Message ID:
01257422
Vues:
16
>Dragan,
>
>What's the last executable code line in the script?

In one version, it's "return oObj", in the other it's "toCaller.oRef=oObj". The object is verified to exist (in the debugger), but the next line of code that executes after that is in its .destroy().

To me it seems that VFP kills the temporary .fxp that it created for the script, and therefore the definition of the class in it, which causes the object to get destroyed.

If this can't be circumvented, well then I'll copy it out to a prg, compile it and run from that. I'll do the cleanup on my own - it'll be the caller's job to erase the .prg and .fxp when it unloads.

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