gdk... um......... wtf?
- From: raster redhat com
- To: gtk-list redhat com
- Subject: gdk... um......... wtf?
- Date: Mon, 12 Jan 1998 20:29:59 -0500 (EST)
Um.. okay.. is there anyone who has tried to mesh Xlib code with gdk
before? things arne't looking good.. a simple function call that SHOULD
work.. and without gdk always has worked, now fails wiht low-level X
errors..... has anyone seen this before?
gdb:
** ERROR **: BadMatch (invalid parameter attributes)
Program received signal SIGABRT, Aborted.
0x4008c131 in __kill ()
(gdb) bt
#0 0x4008c131 in __kill ()
#1 0x4008bf4f in raise (sig=6) at ../sysdeps/posix/raise.c:28
#2 0x4008d16f in abort () at ../sysdeps/generic/abort.c:134
#3 0x401db1eb in g_error () at gutils.c:618
#4 0x401ba09e in gdk_x_error (display=0x80525e0, error=0xbfffcd74)
at gdk.c:2273
#5 0x40141810 in _XError ()
#6 0x40140228 in _XReply ()
#7 0x401aba96 in XShmPixmapFormat ()
#8 0x401cd042 in gdk_imlib_init () at misc.c:283
#9 0x804ee74 in main (argc=1, argv=0xbffff7d0) at TEST.c:20
(gdb)
the bit of code:
... unimportant ...
disp=(Display *)gdk_display;
if (!disp)
{
return;
}
id=(ImlibData *)malloc(sizeof(ImlibData));
if (!id)
{
return;
}
id->x.disp=disp;
id->x.screen=DefaultScreen(disp); /* the screen number */
id->x.root=DefaultRootWindow(disp); /* the root window id */
id->x.visual=DefaultVisual(disp,id->x.screen); /* the visual type */
id->x.depth=DefaultDepth(disp,id->x.screen); /* the depth of the screen in b$
if (XShmQueryExtension(id->x.disp))
{
id->x.shm=1;
id->x.shm_event=XShmGetEventBase(id->x.disp)+ShmCompletion;
id->x.last_xim=NULL;
id->x.last_sxim=NULL;
id->max_shm=0x7fffffff;
if (XShmPixmapFormat(id->x.disp)==ZPixmap) id->x.shmp=1;
}
else
{
id->x.shm=0;
id->x.shmp=0;
}
... etc. ...
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
raster@rasterman.com /\___ /\ ___/||\___ ____/|/\___ raster@redhat.com
Carsten Haitzler | _ //__\\ __||_ __\\ ___|| _ / Red Hat Advanced
218/21 Conner Drive || // __ \\_ \ | | \ _/_|| / Development Labs
Chapel Hill NC 27514 USA ||\\\/ \//__/ |_| /___/||\\ 919 547 0012 ext 282
+1 (919) 929 9443, 801 4392 For pure Enlightenmenthttp://www.rasterman.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]