Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why event tracker shows destroy, but destroy didn't execute?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Why event tracker shows destroy, but destroy didn't execute?
Divers
Thread ID:
00309695
Message ID:
00309695
Vues:
56
I was trying to figure out what events fire if init returns .f., and I get different answers depending on where I look. the event tracker shows destroy, but the destroy method doesn't execute. Is this a bug, or what is going on?

clear
?
set eventtracking to evnts
set eventtracking on

oA = CreateObject( "cX", .t. )
oB = CreateObject( "cX", .f. )
oC = CreateObject( "cX", .t. )
release oA, oB, oC

set eventtracking to
?
? "evnts.txt"
? filetostr( "evnts.txt" )

return

define class cX as custom
function init( tlRet )
? this.name + ".init(" + trans( tlRet ) + ")"
return tlRet
function destroy()
? this.name + ".destroy()"
endfunc
enddefine
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform