[Gtk-sharp-list] Unhandled Exception: System.Exception: Unknown type
Adam Tauno Williams
adam at morrison-ind.com
Fri May 4 16:47:58 EDT 2007
On Fri, 2007-05-04 at 16:34 -0400, Adam Tauno Williams wrote:
> On Thu, 2007-05-03 at 18:58 -0400, Andy York wrote:
> > It sounds like you have an unknown data type loading into the treeview
> > like the it was expecting an image and got a string. Is it possible it
> > is loading incorrect data?
> I'm becoming more convinced the bug isn't in my code.
> I've changed the method to get the select object to:
> -----------------------------------------
> protected Task IterTask(Gtk.TreeModel _model, Gtk.TreeIter _iter)
Neat!
If I:
------------------
object o;
o = null;
for (int attempts = 0; attempts < 5; attempts++)
{
try {o = _model.GetValue(_iter, 0);}
catch (Exception ex)
{ if (attempts == 5) throw ex; }
}
-------------
I'm able to change it to the following warning, and not crash. Not a
solution, but interesting.
(Whitemice.Consonance.exe:9672): Gtk-CRITICAL **:
gtk_tree_model_filter_iter_next: assertion `GTK_TREE_MODEL_FILTER
(model)->priv->stamp == iter->stamp' failed
(Whitemice.Consonance.exe:9672): Gtk-CRITICAL **: file gtktreeview.c:
line 4751 (gtk_tree_view_bin_expose): assertion `has_next' failed.
There is a disparity between the internal view of the GtkTreeView,
and the GtkTreeModel. This generally means that the model has changed
without letting the view know. Any display from now on is likely to
be incorrect.
>> > Unhandled Exception: System.Exception: Unknown type
> > > at GLib.Value.get_Val () <0x006d0>
> > > at Gtk.TreeModelFilter.GetValue (Gtk.TreeIter,int) <0x00068>
> > > at Whitemice.ZOGI.GtkWidgets.TaskLists.IterTask
> > > (Gtk.TreeModel,Gtk.TreeIter) <0x00035>
> > > at Whitemice.ZOGI.GtkWidgets.TaskLists.RenderEnd
> > > (Gtk.TreeViewColumn,Gtk.CellRenderer,Gtk.TreeModel,Gtk.TreeIter)
> > > <0x00039>
> > > at (wrapper delegate-invoke)
> > > System.MulticastDelegate.invoke_void_TreeViewColumn_CellRenderer_TreeModel_TreeIter (Gtk.TreeViewColumn,Gtk.CellRenderer,Gtk.TreeModel,Gtk.TreeIter) <0x0005f>
> > > at GtkSharp.TreeCellDataFuncWrapper.NativeCallback
> > > (intptr,intptr,intptr,Gtk.TreeIter&,intptr) <0x00130>
> > > at (wrapper native-to-managed)
> > > GtkSharp.TreeCellDataFuncWrapper.NativeCallback
> > > (intptr,intptr,intptr,Gtk.TreeIter&,intptr) <0x0003a>
> > > in (unmanaged) 0xb6fe70e0
> > > at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
> > > at Gtk.Application.Run () <0x00007>
> > > at Whitemice.Consonance.Consonance.Main (string[]) <0x000c3>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070504/01e6144a/attachment.bin
More information about the Gtk-sharp-list
mailing list