Re: Subject: "shmat failed" messages writes:

> Hola gurus,
> I'm getting a
>         Gdk-WARNING **: shmat failed!
> message every time I call gdk_pixmap_create_from_xpm_d(). Looking through the
> code, shmget() is working fine, it's just the attach that's failing, which is
> a bit odd. Anyone seen this before?
> This is gtk+1.1.13 on Solaris 2.6.

Could you modify the warning line to print out the error:

That is, make:

  g_warning ("shmat failed!");

  #include <errno.h>
  g_warning ("shmat failed!: %s", g_strerror (errno));

It isn't at all obvious to me why it would be failing here.


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