Error Message
When using Gtk somewhere in the routine Gtk.Main.Init I get the error message during running in GPS: Program received signal SIGILL, Illegal instruction. 0x04aec0c9 in ?? () from C:\Users\Bertus\AppData\Local\Ipsoft\UIToolkit.dll I do get this message not only in running the present project but also in running other projects that where ready and worked correctly. The way the problem occurs does suggest that It has something to do with Gtk. What is the reason of this problem? L. Dries ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
Gtk Graph drawing
Hi all, I want to draw some graphs and bar charts for some data I have and I am searching for any library available. I am using gtk+ with C. Do you have something in mind? A research on the internet didn't give any satisfactory results, most of the suggestions where about old libraries and Cairo. If you have any suggestions I would appreciate it. Thanks, Vasileios ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
calls of g_slice_new in different threads return the same address?
Hi, I am using g_slice_new to alloc some memory in my work, and it seems that sometimes same address would be returned if g_slice_new in different threads are called at the same time, I'm wondering if anyone has ever encountered this problem? or it's already a known bug? because i am using the glib2-2.12.3, it's really a bit old now. i write a test program to create three threads to keep alloc and free mems using g_slice_new and g_slice_free respectively, i will put the allocated mem in a hash table, so everytime after calls to g_slice_new, i check if it's in the hash table , and it turns out that it does happen. and if i setG_SLICE=always_malloc before i run the test program, there will be no problem. any advice will be appreciated. Attached is my test program, i copy some codes from ghash.c so that it can be compiled only with gcc -o gslice_test gslice_test.c -lglib-2.0 -I/usr/include/glib-2.0/ -I/usr/lib64/glib-2.0/include/ -pthread -g Here is my enviroment: os: Linux 183 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux (old enough too) glib version: glib2-debuginfo-2.12.3-2.el5.centos glib2-2.12.3-2.fc6 glib2-2.12.3-2.fc6 glib2-devel-2.12.3-2.fc6 glib2-devel-2.12.3-2.fc6 gslice_test.c Description: Binary data ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
Re: Gtk Graph drawing
On Sat, 2014-03-08 at 16:18 +, Bill Vyzas wrote: > Hi all, > > I want to draw some graphs and bar charts for some data I have and I am > searching for any library available. I am using gtk+ with C. > > Do you have something in mind? A research on the internet didn't give any > satisfactory results, most of the suggestions where about old libraries and > Cairo. > > If you have any suggestions I would appreciate it. You have to tell us if you do INTERACTIVE drawing. What is wrong with Cairo? I used it for my tiny schematics tool (http://www.ssalewski.de/PetEd.html.en). Or are you looking for a more "Ready" solution -- like gnuplot or Pythons mathplotlib? Or Clutter (GTK's equivalent to Qt's Graphics View, more or less, I do not really know...) ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
Re: calls of g_slice_new in different threads return the same address?
Hello. Dne 11.03.2014 (tor) ob 19:15 +0800 je sunxiaobin napisal(a): > Hi, > I am using g_slice_new to alloc some memory in my work, and it seems that > sometimes same > address would be returned if g_slice_new in different threads are called at > the same time, I'm > wondering if anyone has ever encountered this problem? or it's already a > known bug? because > i am using the glib2-2.12.3, it's really a bit old now. > > i write a test program to create three threads to keep alloc and free mems > using g_slice_new and > g_slice_free respectively, i will put the allocated mem in a hash table, so > everytime after calls to > g_slice_new, i check if it's in the hash table , and it turns out that it > does happen. and if i setG_SLICE=always_malloc before i run the test > program, there will be no problem. any advice will > be appreciated. > > Attached is my test program, i copy some codes from ghash.c so that it can > be compiled only with > gcc -o gslice_test gslice_test.c -lglib-2.0 -I/usr/include/glib-2.0/ > -I/usr/lib64/glib-2.0/include/ -pthread -g > > Here is my enviroment: > os: Linux 183 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 > x86_64 x86_64 GNU/Linux > (old enough too) > glib version: > glib2-debuginfo-2.12.3-2.el5.centos > glib2-2.12.3-2.fc6 > glib2-2.12.3-2.fc6 > glib2-devel-2.12.3-2.fc6 > glib2-devel-2.12.3-2.fc6 > > > ___ > gtk-list mailing list > gtk-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-list If I'm not mistaken, older releases of GLib are not thread-safe by default: you need to call g_thread_init(). Does adding this call makes any difference? Cheers, Tadej -- Tadej Borovšak tadej.borov...@gmail.com tadeb...@gmail.com blog.borovsak.si ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
Re: Gtk Graph drawing
Hi, Le samedi 08 mars 2014 à 16:18 +, Bill Vyzas a écrit : > I want to draw some graphs and bar charts for some data I have and I > am searching for any library available. I am using gtk+ with C. > > > Do you have something in mind? A research on the internet didn't give > any satisfactory results, most of the suggestions where about old > libraries and Cairo. Goffice is the library used by gnumeric for it's charting engine. It's mostly designed for use in gnumeric, not very well documented, but it's pretty complete and it is maintained. https://git.gnome.org/browse/goffice Emmanuel. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
calls of g_slice_new in different threads return the same address?
Hi, I am using g_slice_new to alloc some memory in my work, and it seems that sometimes same address would be returned if g_slice_new in different threads are called at the same time, I'm wondering if anyone has ever encountered this problem? or it's already a known bug? and if similar tests would be done for a release. i am using the glib2-2.12.3, it's really a bit old now. Here is my enviroment: os: Linux 183 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux (old enough too) glib version: glib2-debuginfo-2.12.3-2.el5.centos glib2-2.12.3-2.fc6 glib2-2.12.3-2.fc6 glib2-devel-2.12.3-2.fc6 glib2-devel-2.12.3-2.fc6 Thank you ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list