Timers and queries..



I need to execute a call every so often so I though I would add a timeout.  
When I run my program under a solaris box it only executes the timer
function once then just waits.  Though under a win32 box (using gtk+ port)
it calls the timer function repeatadly as it should...  Is there something
I am doing wrong in terms of the solaris usage? (This is using the same
code for both platformss)..


gint tick(gpointer data) {
 printf("Tock\n");
 return;
}

Ticker = gtk_timeout_add(500,tick,NULL);

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Sean Cody (a.k.a. NullStream formerly TDR-X)
Email: umcodysw@cc.umanitoba.ca  (School)
        seanc@pangea.ca           ( Work )
        tdr@fuzzyskuzzy.dhs.org   ( Home )
WWW: http://home.cc.umanitoba.ca/~umcodysw
        http://fuzzyskuzzy.dhs.org
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



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