Re: Runtime error



fre, 14,.01.2005 kl. 23.43 +0100, skrev Kristian Berg:
> Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
> in <0xfafd5b63> (wrapper managed-to-native)
> System.Object:__icall_wrapper_mono_struct_delete_old (intptr,intptr)
> in <0x0000f> (wrapper managed-to-native)
> System.Object:__icall_wrapper_mono_struct_delete_old (intptr,intptr)
> in <0x002f5> (wrapper managed-to-native)
> Gtk.StockManager:gtk_stock_lookup (string,Gtk.StockItem&)
> in <0x00031> Gtk.StockManager:Lookup (string,Gtk.StockItem&)
> in <0x00067> GtkUtil:MakeToolbarButton
> (Gtk.Toolbar,string,System.EventHandler)
> in <0x00388> MainWindow:.ctor (Db)
> in <0x00239> Driver:Main (string[])

Seemingly it is these lines in the constructor which causes the null reference exception:
GtkUtil.MakeToolbarButton (toolbar, "f-spot-rotate-90", new System.EventHandler (HandleRotate90Command));

By replacing the icon names with null, f-spot starts. Could these be caused by mono 1.1 not correctly handling resources?


-- 
Kristian Berg

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]