Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class defined in execscript() vanishes
Message
From
28/09/2007 09:49:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01257351
Message ID:
01257422
Views:
17
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform