Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why event tracker shows destroy, but destroy didn't execute?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Why event tracker shows destroy, but destroy didn't execute?
Miscellaneous
Thread ID:
00309695
Message ID:
00309695
Views:
58
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
Next
Reply
Map
View

Click here to load this message in the networking platform