-Try don’t to use tick event… it is too heavy…
-if the button is fine then must be other variable (you must find it).
-Check the variables just before use it (in the same line)
-Don’t try to use the widgets after destroy it… that is
or
After destroy, they are null pointers.
You must create they again to used it