[gtkada] Heap corruption and other problems
Pascal
p.p14 at orange.fr
Sun Dec 1 10:12:40 CET 2013
Hello Dmitry,
I’ve just tried your simple example with GTKAda GPL 2013 (GTK Ada 3.4.2 with GTK+ 3.4.1) on MacOS 10.9 with no errors :
$ ./simple
Have you still issues?
Regards, Pascal.
http://blady.pagesperso-orange.fr
Le 12 août 2013 à 10:36, Dmitry A. Kazakov <mailbox at dmitry-kazakov.de> a écrit :
> On Mon, 12 Aug 2013 09:37:45 +0200, you wrote:
>
8<…>8
>>> 2. Another serious problem is in GDK which shows itself as:
>>>
>>> Gdk-CRITICAL **: gdk_device_get_source: assertion `GDK_IS_DEVICE
>>> (device)' failed
>>>
>>> on many occasions. E.g. in combo boxes after resizing them.
>>
>> We have seen that one at some point, but it is gone in the development
>> versions now.
>
> Create a window with combo box in it:
>
> with Gtk.Box; use Gtk.Box;
> with Gtk.Main;
> with Gtk.Window; use Gtk.Window;
> with Gtk.Combo_Box_Text; use Gtk.Combo_Box_Text;
>
> procedure Simple is
> Window : Gtk_Window;
> Combo : Gtk_Combo_Box_Text;
> Box : Gtk_VBox;
>
> begin
> Gtk.Main.Init;
> Gtk_New (Window);
>
> Gtk_New_VBox (Box);
> Window.Add (Box);
> Window.Set_Title ("Test");
> Gtk_New (Combo);
> Box.Pack_Start (Combo, False, False);
> Combo.Append_Text ("A");
> Combo.Append_Text ("B");
> Combo.Append_Text ("C");
>
> Window.Show_All;
>
> Gtk.Main.Main;
> end Simple;
>
> Start program. Resize window so that combo box resizes. Select something in
> the box. Done.
>
>> I think it is part of our own patches to gtk+, did you apply these ?
>> They are in the contrib/ directory (of course, that's in case you recompile your
>> own gtk+, I don't remember what system you are working on).
>
> I don't know how to do it under MinGW. The Gtk I am using I took from
> mingw32 Fedora packages (Gtk 3.8.2). I simply copied /bin /lib etc and
> changed Path environment variable. That resolved some issues, e.g.
> GtkColorButton crash.
>
>>> So far Gtk3 looks barely usable for any serious application. Sorry for all
>>> efforts AdaCore spent on GtkAda.
>>
>> We do use it very successfully for the upcoming version of GPS in fact. The
>> transition is indeed somewhat painful, but then things seem to work as expected
>> for us. Of course, we may have made progress or fixes since the last GPL release.
>
> I hope you are right. The problem is difficult is reproduce. In my
> application I need a lot of clicking (creating and removing widgets) for
> the problem to show. Which suggests a race condition somewhere.
>
> --
> Regards,
> Dmitry A. Kazakov
> http://www.dmitry-kazakov.de
> _______________________________________________
> gtkada mailing list
> gtkada at lists.adacore.com
> http://lists.adacore.com/mailman/listinfo/gtkada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/gtkada/attachments/20131201/165a8b03/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2013-12-01 ? 10.04.01.png
Type: image/png
Size: 15930 bytes
Desc: not available
URL: </pipermail/gtkada/attachments/20131201/165a8b03/attachment-0001.png>
More information about the gtkada
mailing list