Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release parent from child object
Message
De
06/11/2003 04:27:43
 
 
À
05/11/2003 10:53:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00846374
Message ID:
00846964
Vues:
25
Hi,

>goApp is a public variable.
>goApp have a reference of timer in goApp.aReference[]
>Timer.Timer()
>goApp.Shutdown()

Fox probably doesn't like trying to return to an object that's been destroyed. Maybe use event binding? E.g:
DEFINE CLASS oApp as Container
oTimer = CREATEOBJECT("Timer")
oTimer.Interval = 1000
oTimer.Enabled = .T.
PROCEDURE INIT()
BINDEVENT(This.oTimer,"Timer",this,"Shutdown")
ENDPROC
PROCEDURE ShutDown()
QUIT
ENDPROC
ENDDEFINE
oX = CreateObject("oApp") works.
Regards,
Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform