[Glade-users] how to display images?



Hi crowd,
thanks to Byron I�m now able to display the images from a frame grabber 
in a GtkImage widget.
The  only issue I come across now is that if I grab and display images
repeatedly and leave and reenter the screen where my program runs, it 
sometimes hangs in gdk_draw_gray_image().
Seems that it is just when X11 redraws the window during the execution of
gdk_draw_gray_image().
When I run the program in gdb and stop it with [cntrl]-z when it hangs
I can get the folowing backtrace:
#0  0x402c6caa in _XFlushInt () from /usr/X11R6/lib/libX11.so.6
#1  0x402c6c5b in _XFlush () from /usr/X11R6/lib/libX11.so.6
#2  0x402c3d6a in XSync () from /usr/X11R6/lib/libX11.so.6
#3  0x4026a3e0 in gdk_flush () from /usr/lib/libgdk-1.2.so.0
#4  0x40275310 in gdk_rgb_alloc_scratch_image () from 
/usr/lib/libgdk-1.2.so.0
#5  0x4027538a in gdk_rgb_alloc_scratch () from /usr/lib/libgdk-1.2.so.0
#6  0x40275604 in gdk_draw_rgb_image_core () from /usr/lib/libgdk-1.2.so.0
#7  0x4027591f in gdk_draw_gray_image () from /usr/lib/libgdk-1.2.so.0
#8  0x804dc5a in image_draw () at callbacks.c:348 

The last line is my funktuion that calls gdk_draw_gray_image().
Anyone a clue if this is a bug in X11 or what? I'm running RedHat 6.1
(my frame grabber driver doesnt'n work with newer versions) which is XFree 
3.3.6.

Thanks,
Franz
------------------------------------------------------------------
Franz Parzefall

Multitest elektronische Systeme GmbH & Co. KG
Aeussere Oberaustr. 4
83026 Rosenheim
Germany
Tel:   +49 (0)8031 406 473
Fax:   +49 (0)8031 406 420
Email: f parzefall multitest de
Web:   www.multitest.de
------------------------------------------------------------------






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