[Gtk-sharp-list] row-activated TreeView exception handling.

Murugan K kmurugan at novell.com
Fri Jan 19 09:45:16 EST 2007


Hi 

I developed an application using Glade which uses TreeView in it. It was working fine without any problem. Recently I upgraded libglade and mono core  and other packages in my machine and found that my application is not coming up due to the following error. This seems to be a common error and I am not able to get any info from the archive. I hope some one will help me to fix my simple problem. My apologies in advance , if it is a simple problem to fix. I am asking this question as I am new to this glade development.

To test and understand  my problem, I removed the row_activated signal information from the glade file and found that my application in coming up. But the particular row_activated functionality is broken.

So I added the following in my code
ArchivedTree.RowActivated += new RowActivatedHandler(on_ArchivedTree_row_activated);
VersionsTree.RowActivated += new RowActivatedHandler(on_VersionsTree_row_activated);

Which also failing due to null reference exception.

Earlier Working code
######################################################################
Glade.XML gxml = new Glade.XML("/opt/novell/versioning-client/bin/fvu.glade",
                        "Restore Archived Versions",null);

wnd = (Gtk.Window)gxml.GetWidget("Restore Archived Versions");
wnd.Visible = false;
gxml.Autoconnect(this);
########################################################################

Added the following in the working code to try the recommended one.

ArchivedTree.RowActivated += new RowActivatedHandler(on_ArchivedTree_row_activated);
VersionsTree.RowActivated += new RowActivatedHandler(on_VersionsTree_row_activated);


Unhandled Exception: Glade.HandlerNotFoundException: No handler on_ArchivedTree_row_activated found for signal row_activated
at SignalConnector.ConnectFunc (string,intptr,string,string,intptr,int,intptr) <0x002b8>
at (wrapper native-to-managed) SignalConnector.ConnectFunc (intptr,intptr,intptr,intptr,intptr,int,intptr) <0x0006d>
in (unmanaged) 0xb6a3890f
at (wrapper managed-to-native) SignalConnector.glade_xml_signal_autoconnect_full (intptr,Glade.XML/SignalConnector/RawXMLConnectFunc,intptr) <0x00004>
at SignalConnector.Autoconnect () <0x00059>
at Glade.XML.Autoconnect (object) <0x00042>
at LinuxFileVersionUtility.FVU..ctor (string[]) <0x000a9>
at LinuxFileVersionUtility.FVU.Main (string[]) <0x0002b>

Any one tell me what is happening here.

Thanks in advance for your valuable time to response to this mail.

Regards
K.Murugan
 



More information about the Gtk-sharp-list mailing list