[gtkada] CONSTRAINT_ERROR: glib-object.adb:112 access check failed
Chris Sparks
mr_ada at cox.net
Thu Jun 28 15:56:42 CEST 2012
I am using Windows XP-64 and got:
raised CONSTRAINT_ERROR : glib-object.adb:112 access check failed
The problem seem to be the location of the PNG file at line 284. Change
it from this:
Gdk_New_From_File (Pix, "../../testgtk/alps.png", Error);
to this:
Gdk_New_From_File (Pix, "../testgtk/alps.png", Error);
It worked for me then.
chris
> Dear GtkAda developers,
>
> I am using a MacBook Air (Mac OS X 10.7.4) and have installed Gnat GPL
> (downloaded and installed 2012-06-27) from the AdaCore Libre site.
> GtkAda (revision 191397) was compiled and installed. Of course I've
> set up the PATH and ADA_PROJECT_PATH correctly.
>
> Compiling the images project in the examples directory works but
> executing the application gives the following error message in the
> x-terminal:
>
> Akes-MacBook-Air-2:images ake$ ls
> Makefile README rect rect.adb rect.ali rect.gpr
> rect.o
> Akes-MacBook-Air-2:images ake$ ./rect
>
> (process:11723): Gtk-WARNING **: Locale not supported by C library.
> Using the fallback 'C' locale.
>
> raised CONSTRAINT_ERROR : glib-object.adb:112 access check failed
>
> I have been searching (Google, Bing, Yahoo, ...) the internet but it
> has been very hard to find any information regarding this issue. Has
> anyone else encountered this or is it just me?
> In my humble opinion Ada is a nice language and I would like to work
> more with it. The problem that I am facing is that I would like to
> develop applications with GUI:s. That's why I find the idea of
> developing crossplatform applications using Ada and GtkAda attractive.
> What I find disturbing is that it is not possible to run the example
> applications. Maybe Mac OS X is not supported by GtkAda? But on the
> other hand I can run GPS without any problem. What am I missing?
>
> Regards,
> Åke Dahlgren
>
>
> _______________________________________________
> gtkada mailing list
> gtkada at lists.adacore.com
> http://lists.adacore.com/mailman/listinfo/gtkada
More information about the gtkada
mailing list