Re: RE :Problem with gtk (done mistake)

On Mon, 2006-12-18 at 09:33 +0530, Naveen Kumar wrote:
> Hi all,
> Please excuse for my mistake...
> I am very sorry for sending a wrong part of the code it is actually..
> #include <stdio.h>
> int main ()
> {
> int i=0;
> while(i < 264000)
> printf("%d\n",i++);
> }
> it works very fine in my machine without any problem. (it takes around
> 1.2 minutes)
> 2)If try to run the same part of code on a button click using gtk,
> the application is crashing around 30 seconds saying just "Terminated".
> Is there any time out as such we can specify for gtk applications..
> Please help me regarding this.

If you want something to happen 1.2 minutes after the button gets hit,
set up a timeout using g_timeout_add, which will arrange so that a
function is called after the time you set passes.

-- m

Mariano Su�z-Alvarez

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