Re: gdk_draw_gray_image crashes

In article <3AD305DB 2422256F ifp uni-stuttgart de>, Jan Böhm <jan boehm ifp uni-stuttgart de> writes:

<gdk/gdk.h> Hi, Based on an example I grabed from this list, I tried
to compile a short program for drawing a gray image to a window (see
below). But on my system the gdk_draw_gray_image routine crashes:
Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 107
error_code 8 request_code 130 minor_code 3 What am I doing wrong? My
system: SunOS 5.6 Generic_105181-14 sun4u sparc SUNW,Ultra-5_10


I think the problem is that your window doesn't exist yet for your X
server at the time you use gdk_draw_gray_image. Instead, you might
want to use it from a callback for the "expose_event" or the "show"


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