Problem with timers



Hi Folks

I have some problems with using using timers.  I set up the following
two timers


 timer1 = gtk_timeout_add (PERIODIC_TIME_INTERVAL_LIGHTS,
                            (GtkFunction) PeriodicLightHandler,
                            (gpointer) gpEventBoxDataStore);
  timer2 = gtk_timeout_add (PERIODIC_TIME_INTERVAL_BUTTONS,
                            (GtkFunction) PeriodicButtonHandler,
                            (gpointer) gpButtonDataStore);

using the values of
PERIODIC_TIME_INTERVAL_LIGHTS=PERIODIC_TIME_INTERVAL_BUTTON=any number
which is the same

and it they do not seem to work, when I set the values of

PERIODIC_TIME_INTERVAL_BUTTON
and
PERIODIC_TIME_INTERVAL_LIGHTS

with a difference between them of about 200 or more the timers work. 
Can someone
please tell me whats going on.

Cheers
Antony




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]