GTK application problem

Hi

I have successfully build and run a GTK application on
Beagle Board running Angstrom Linux..

my GTK application consists of a graphical meter which has a
pointer which points to a value from 0 to 50

Currently i have 51 images for each pointer from 0 to 50
am using a timer which continuously calls a function at
regular intervals and i use gtk_image_set_from_file function
to set the image corresponding to value incremented in the timer

but i am facing a peculiar problem..when i put printf statement after
the
gtk_image_set_from_file function then only the all images are loaded
one by one
and show the pointer going from 0 to 50 but if the printf statement is
not
present then only position 0 and 1 of pointer is displayed and the
pointer does not go further..

when i run the same application on a normal PC with ubuntu linux 9.04
it works fine without the printf

please advice what could be the problem..

just off the top of my head, it sounds like the printf might have
caused
a needed delay in the program. Have you tried a delay at that point in
your
program?
   Also did you see the GTK samples? there is a really sweet dial
sample
in that. It draws the dial and pointers in math. Dont need to store 50
images.

djlewis