2.8.3 crashes under IRIX [was: not compiling on IRIX... strtoull issue?]

Vadim Zeitlin vadim at wxwindows.org
Fri May 11 12:50:31 PDT 2007


On 11 May 2007 08:17:46 -0700 defreitas at gmail.com wrote:

> Since the call stack shows a problem in gtk_tree_view_destroy(), this
> sparked my memory that I picked up a new version of src/gtk/
> treeentry_gtk.c (1.6) to fix compilation warnings in IRIX about
> declarations after executable statements. I don't know if this is
> related, but I looked at the code differences between this new version
> and the old version (1.4) and noticed on line 49 of version 1.6 that a
> static variable was made into a stack variable. The code used to look
> like:
> 
> __________
> 
> if (!tree_entry_type)
> {
>     static const GTypeInfo tree_entry_info
>     {
...
>     };
>     tree_entry_type = g_type_register_static (G_TYPE_OBJECT,
> "GtkTreeEntry",
>                                               &tree_entry_info,
>                                               (GTypeFlags)0);
>     g_value_register_transform_func(tree_entry_type, G_TYPE_STRING,
> }
> 
> __________
> 
> In the new version, the "static" qualifier was removed from the
> declaration of the variable "tree_entry_info".

 "static" doesn't seem to be necessary here. At least looking at
g_type_register_static() implementation it doesn't rely on the pointer
remaining valid.

> But perhaps this can spark some ideas? Any major code changes from
> 2.6.3 and 2.8.3 regarding the list box?

 It was completely rewritten AFAIR.

> BTW, the version of gtk+ I use is: 2.0.6. Is that OK?

 Well, it should be, but it's a *very* old version so it's not impossible
that it had some bugs which nobody every found because nobody tested wx
with it. According to http://gtk.org/oldnews.html (URL name is pretty
significant on its own) it was released 5 years ago. The current stable
version is 2.12.12 and it would be really better to use 2.4 or later if
possible as there has been a lot of improvements (and possibly bug fixes)
since 2.0/2.2 days.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list