[gtkada] Fwd: Gtk.List_Store.Swap
Jan de Kruyf
jan.de.kruyf at gmail.com
Wed May 1 21:34:17 CEST 2013
Hallo,
I seem to have a funny I cannot resolve:
'Gtk.List_Store.Swap' breaks as follows:
-------------------------------------------------------------------
Execution terminated by unhandled exception
Exception name: STORAGE_ERROR
Message: stack overflow (or erroneous memory access)
Call stack traceback locations:
0x7fb4957224ee 0xfffffffffffffffe
-------------------------------------------------------------------
addr2line gives no answers.
However, both the model and the iters are valid as far as I can see.
Here is a snippet of the code:
--------------------------------------------------------------------
Model : Gtk.List_Store.Gtk_List_Store;
--Gtk.Tree_Model.Gtk_Tree_Model;
Path1, Path2 : Gtk.Tree_Model.Gtk_Tree_Path;
Iter1, Iter2 : Gtk.Tree_Model.Gtk_Tree_Iter;
begin
.
.
.
-- initialization of 'Model'
Gtk.Tree_Selection.Get_Selected_Rows
(Selection => Selection,
Model => Gtk.Tree_Model.Gtk_Tree_Model (Model),
Path_List => Rows);
.
.
-- iters are found
.
.
-- test code, which gives correct results:
Info_Message (Gtk.Tree_Model.Get_String
(Gtk.Tree_Model.Gtk_Tree_Model (Model), Iter1, 0));
Info_Message (Gtk.Tree_Model.Get_String
(Gtk.Tree_Model.Gtk_Tree_Model (Model), Iter2, 0));
-- immediately followed by the offending statement:
Gtk.List_Store.Swap
(Store => Model,
A => Iter1,
B => Iter2);
.
.
end
--------------------------------------------------------------------------------------------
I hope one of you might have some time to help me here, thanks.
Jan de Kruyf.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/gtkada/attachments/20130501/0805ff20/attachment.html>
More information about the gtkada
mailing list