Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where's my oApp?
Message
From
06/04/1999 16:18:17
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00205449
Message ID:
00205761
Views:
19
Hmmm...intriguing idea. I'll try it out and let you know.


>
>Think about what you're doing here. The line of code that's executing in main.prg is oApp=NEWOBJECT("appclass","myclasslib"). That line of code has still not completed when your launcher form runs. My guess is that oApp isn't defined until your Init completes and execution returns to main.prg. I would move the call to the form into a method of oApp, say Launch and do this in main.prg:
>
>oApp=NEWOBJECT("appclass","myclasslib")
>oApp.Launch()
>
>>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?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform