H
HONOREDANCESTOR
I have a timer which goes off every second and executes some code. I
also have a menu item that sets some variables to NOTHING. The
problem is that the timer uses some of those variables. If I execute
the menu item while the timer is firing an event, I get a crash.
So I need to make the menu item wait for a timer event to be finished
before the menu item executes its own code. Is there a way to do this
- perhaps with 'synclock' on some variable that the two routines have
in common?
Thanks,
HA
also have a menu item that sets some variables to NOTHING. The
problem is that the timer uses some of those variables. If I execute
the menu item while the timer is firing an event, I get a crash.
So I need to make the menu item wait for a timer event to be finished
before the menu item executes its own code. Is there a way to do this
- perhaps with 'synclock' on some variable that the two routines have
in common?
Thanks,
HA