General information
Category:
Coding, syntax & commands
>In my timer event, depending on some conditions, I need to remove the objec from memory.
>
>My object is oApp.oTimer.
>
>What will be the best way to remove it from memory?
>
>I tried This.Destroy() but it does not do the job. Also, there isn't a Release() method for the timer object.
Add a Release method to your timer class:
This.Enabled=.f.
release This
I highly recomend you to have the This.Enabled=.f. statement. I don't know excatly (!!:)) why, but you can have some very strange behaviors if you don't do it.
Vlad
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only