Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where's my oApp?
Message
De
05/04/1999 23:31:52
 
 
À
05/04/1999 22:52:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00205449
Message ID:
00205471
Vues:
16
It sounds to me like another procedure is stomping on your variable. Especially since you say the value goes to .F. instead of (Cannot Evaluate Expression) or whatever. Pick a time when oApp shows .F. and do a DISPLAY MEMORY and check what routine initialized your variable.

>First think I did, David. oApp goes to .F. (not "O") the minute the Launcher launches, even before any code is executed....wondering if it's a VFP6 problem?
>
>>
>>Put a debugger breakpoint on oApp and catch the instant it changes.
>>
>>>Hi All ---
>>>
>>>Strange one here. I have an application with a main.prg that has:
>>>
>>>PUBLIC oApp
>>>oApp=NEWOBJECT("appclass","myclasslib")
>>>
>>>The app object sets the environment in Init and then launches a Launcher form, also with NEWOBJECT().
>>>
>>>By the time I get to the Launcher form, oApp is vermicht..hasta la vista...gone...undefined. I can watch it happen yet am clueless why...no CLEAR ALL...no RELEASE ALL or RELEASE oApp.
>>>
>>>What the heck?
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform