[gtkada] Memory allocation issue in GtkAda 3.8 ?

Rob Groen robgr at xs4all.nl
Sun Jun 29 18:11:33 CEST 2014


 

Hello all, 

As a follow up on the discussion last March wrt memory allocation
problems in GtkAda 3.x, I tried one of my failing programs with Gtkada
3.8. Unfortunately with the same result. 

I tried this on Windows 7, both on a 64- and on a 32-bit environment,
using the GNAT GPL 2014 compiler. In order to track the problem I
stripped my original application to a simple window with a treeview /
liststore, consisting of one column of type Gtype_String. The liststore
gets loaded with a nr of strings, then a search in the store is
performed. In the search a Get_String is done on an element of the
store. 

When an allocator is used prior searching ( sp := new String'("") ), the
program crashes after a few searches. When either the allocator or the
Get_String is omitted the program runs to completion.
(The nr of strings to put into the store and the nr of searches vary
with the code, logging statements, etc etc. The current nrs are those
that crashes the program in my environments, Win7 32- and 64-bit.) 

For those who want to research / replay this issue a zip file with the
code and a .gpr file can be found at:
http://robgr.home.xs4all.nl/gtkada3x_bug.zip. The "offending" code is in
the file gtkada3x_bug_support.adb.
Unfortunately I do not have the knowledge to research this problem. 

If there are problems downloading, let me know, then I will send the zip
file. 

Best regards 

Rob Groen 

(PS I hope that it is not something in my code... that would be so
embarrassing. I have looked it over and over umpteen times.) 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/gtkada/attachments/20140629/4e82539f/attachment.html>


More information about the gtkada mailing list