[Gtk-sharp-list] problems with RowActivated event (TreeView)

Aleksey Sanin aleksey@aleksey.com
Fri, 01 Aug 2003 23:46:28 -0700


I had some more time to play with this and I found that the problem is in
the current gtk-sharp CVS trunk. The combination mono/mcs from CVS
trunk + gtk-sharp 0.10 works just fine. But if I try any mono/mcs with 
current
gtk-sharp CVS trunk, the application throws a System.NullReferenceException
at random place. Sometimes I also see GTK assertions like this one:
   
(<unknown>:15627): Gtk-CRITICAL **: file gtktreeviewcolumn.c: line 2344
(gtk_tree_view_column_cell_get_size): assertion `GTK_IS_TREE_VIEW_COLUMN
(tree_column)' failed

After looking at the problem in the debugger I have a feeling that
there is a GObject reference count problem somewhere. But I was not
able to spot the exact place.

I have found a solution for now (use gtk-sharp 0.10). But if someone
would need help with testing or reproducing the problem I would be
glad to help.

With best regards,
Aleksey
 


Aleksey Sanin wrote:

> Hi, All!
>
> I run into some problems with using RowActivated event
> for TreeView. Basicaly, if I install *any* RowActivated event
> callback then application crashes after 3-4 double clicks on
> the tree. As an example, I have attached a diff that adds
> RowActivated event callback to the gtk-sharp/sample/TreeViewDemo.cs
> application.
>
> I found only one reference to RowActivated events thru google:
>        
> http://lists.ximian.com/archives/public/gtk-sharp-list/2003-February/001122.html 
>
> and I am doing exactly the same thing as suggested. I wonder
> if this is some trivial (or not trivial :) ) problem in my code or
> this is a known issue with a known workaround :)
>
> Thanks,
> Aleksey
>