Sigsegv when attempting to access a color struct value.
- From: "Ian King" <king eiffel com>
- To: <gtk-list gnome org>
- Subject: Sigsegv when attempting to access a color struct value.
- Date: Mon, 30 Apr 2001 14:22:05 -0700
I have the following code that works perfectly when running locally, but
fails when run as a remote client (when using the same pixmap). Can anyone
help?
This is approximate what my code is doing, ignore any incorrect casting as I
am using a wrapper library in Eiffel to access gtk c external functions.
1) a_gdkimage = gdk_image_get (a_gtk_pixmap, 0, 0, width, height);
2) a_colormap = gdk_colormap_get_system ();
3) a_pixel = gdk_image_get_pixel (a_gdkimage, 0, 0);
4) a_color = (a_colormap->colors) + (a_pixel * sizeof (GdkColor));
The value of 'a_pixel' is 16777215. When I try to access the red value
from the returned color (line 4), I receive a segmentation violation signal,
but only if the client is ran remotely. Is it anything to do with getting
the gdkimage from the pixmap?
Thanks for your time.
Ian King
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]