[MonoDevelop] Problems with gtksourceview and gtk# HEAD versions

Alexandre Gomes alexmipego@hotmail.com
Fri, 25 Mar 2005 21:49:32 +0000


Hi,

I'm getting this:

Error while loading System.InvalidCastException: Cannot cast from source
type to destination type.
in <0x00058>
GtkSourceView.SourceLanguagesManager:GetLanguageFromMimeType
(System.String mime_type)
in [0x00007]
(at /home/alex/mono.commit/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs:260) MonoDevelop.SourceEditor.Gui.SourceEditorBuffer:LoadText (System.String text, System.String mime)
in [0x0000f]
(at /home/alex/mono.commit/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs:241) MonoDevelop.SourceEditor.Gui.SourceEditorBuffer:LoadFile (System.String file, System.String mime)
in [0x00035]
(at /home/alex/mono.commit/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs:292) MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBindingWrapper:Load (System.String fileName)
in [0x00008]
(at /home/alex/mono.commit/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs:60) MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBinding:CreateContentForFile (System.String fileName)
in [0x00007]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Services/File/DefaultFileService.cs:75) MonoDevelop.Services.DefaultFileService+LoadFileWrapper:Invoke (System.String fileName)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_string
(string)
in [0x0000c]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Core/Services/FileUtilityService.cs:408) MonoDevelop.Core.Services.FileUtilityService+LoadWrapper:Invoke ()
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
in [0x00001]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Core/Services/FileUtilityService.cs:373) MonoDevelop.Core.Services.FileUtilityService:ObservedLoad (MonoDevelop.Core.Services.FileOperationDelegate saveFile, System.String fileName, System.String message, FileErrorPolicy policy)
Error while loading System.InvalidCastException: Cannot cast from source
type to destination type.
in <0x00058>
GtkSourceView.SourceLanguagesManager:GetLanguageFromMimeType
(System.String mime_type)
in [0x00007]
(at /home/alex/mono.commit/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs:260) MonoDevelop.SourceEditor.Gui.SourceEditorBuffer:LoadText (System.String text, System.String mime)
in [0x0000f]
(at /home/alex/mono.commit/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs:241) MonoDevelop.SourceEditor.Gui.SourceEditorBuffer:LoadFile (System.String file, System.String mime)
in [0x00035]
(at /home/alex/mono.commit/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs:292) MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBindingWrapper:Load (System.String fileName)
in [0x00008]
(at /home/alex/mono.commit/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs:60) MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBinding:CreateContentForFile (System.String fileName)
in [0x00007]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Services/File/DefaultFileService.cs:75) MonoDevelop.Services.DefaultFileService+LoadFileWrapper:Invoke (System.String fileName)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_string
(string)
in [0x0000c]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Core/Services/FileUtilityService.cs:408) MonoDevelop.Core.Services.FileUtilityService+LoadWrapper:Invoke ()
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
in [0x00001]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Core/Services/FileUtilityService.cs:373) MonoDevelop.Core.Services.FileUtilityService:ObservedLoad (MonoDevelop.Core.Services.FileOperationDelegate saveFile, System.String fileName, System.String message, FileErrorPolicy policy)
WARNING Could not find stock gtk-save

Unhandled Exception: System.ArgumentException: GCHandle value belongs to
a different domain
in [0x00025]
(at /home/alex/mono.commit/mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs:120) System.Runtime.InteropServices.GCHandle:op_Explicit (intptr)
in [0x00001] (at /home/alex/mono.commit/gtk-
sharp/glib/ManagedValue.cs:77) GLib.ManagedValue:ObjectForWrapper
(intptr)
in [0x00023] (at /home/alex/mono.commit/gtk-sharp/glib/Value.cs:380)
GLib.Value:get_Val ()
in [0x00012] (at /home/alex/mono.commit/gtk-
sharp/gtk/TreeStore.custom:192) Gtk.TreeStore:GetValue
(Gtk.TreeIter,int)
in [0x00061]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SolutionPad/TreeViewPad.cs:591) MonoDevelop.Gui.Pads.TreeViewPad:CompareNodes (Gtk.TreeModel,Gtk.TreeIter,Gtk.TreeIter)
in <0x000c0> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_int_TreeModel_TreeIter_TreeIter
(Gtk.TreeModel,Gtk.TreeIter,Gtk.TreeIter)
in [0x00023] (at /home/alex/mono.commit/gtk-
sharp/gtk/generated/GtkSharp.TreeIterCompareFuncNative.cs:20)
GtkSharp.TreeIterCompareFuncWrapper:NativeCallback
(intptr,Gtk.TreeIter&,Gtk.TreeIter&,intptr)
in <0x0003f> (wrapper native-to-managed)
GtkSharp.TreeIterCompareFuncWrapper:NativeCallback
(intptr,Gtk.TreeIter&,Gtk.TreeIter&,intptr)
in (unmanaged) 0x4c1e1a
in <0x00004> (wrapper managed-to-native)
Gtk.TreeStore:gtk_tree_store_set_value
(intptr,Gtk.TreeIter&,int,GLib.Value&)
in [0x0000b] (at /home/alex/mono.commit/gtk-
sharp/gtk/generated/TreeStore.cs:84) Gtk.TreeStore:SetValue
(Gtk.TreeIter,int,GLib.Value)
in [0x0000c] (at /home/alex/mono.commit/gtk-
sharp/gtk/TreeStore.custom:133) Gtk.TreeStore:SetValue
(Gtk.TreeIter,int,object)
in [0x00017]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SolutionPad/TreeViewPad.cs:1360) TreeBuilder:BuildNode (Gtk.TreeIter,MonoDevelop.Gui.Pads.NodeBuilder[],object)
in [0x000f4]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SolutionPad/TreeViewPad.cs:1343) TreeBuilder:AddChild (object,bool)
in [0x00003]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SolutionPad/TreeViewPad.cs:1309) TreeBuilder:AddChild (object)
in [0x0004b]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/ProjectPad/FolderNodeBuilder.cs:60) MonoDevelop.Gui.Pads.ProjectPad.FolderNodeBuilder:BuildChildNodes (MonoDevelop.Gui.Pads.ITreeBuilder,object)
in [0x00022]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/ProjectPad/ProjectNodeBuilder.cs:113) MonoDevelop.Gui.Pads.ProjectPad.ProjectNodeBuilder:BuildChildNodes (MonoDevelop.Gui.Pads.ITreeBuilder,object)
in [0x00017]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SolutionPad/TreeViewPad.cs:1413) TreeBuilder:CreateChildren (MonoDevelop.Gui.Pads.NodeBuilder[],object)
in [0x00067]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SolutionPad/TreeViewPad.cs:1207) TreeBuilder:FillNode ()
in [0x0002e]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/SolutionPad/TreeViewPad.cs:770) MonoDevelop.Gui.Pads.TreeViewPad:OnTestExpandRow (object,Gtk.TestExpandRowArgs)
in <0x00043> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_TestExpandRowArgs
(object,Gtk.TestExpandRowArgs)
in [0x00088] (at /home/alex/mono.commit/gtk-
sharp/gtk/generated/TreeView.cs:844)
Gtk.TreeView:TestExpandRowSignalCallback
(intptr,Gtk.TreeIter&,intptr,intptr)
in <0x00038> (wrapper native-to-managed)
Gtk.TreeView:TestExpandRowSignalCallback
(intptr,Gtk.TreeIter&,intptr,intptr)
in (unmanaged) 0x3f9851
in <0x00004> (wrapper managed-to-native) Gtk.Application:gtk_main ()
in [0x00000] (at /home/alex/mono.commit/gtk-sharp/gtk/Application.cs:99)
Gtk.Application:Run ()
in [0x0013d]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Base/Commands/AutostartCommands.cs:88) MonoDevelop.Commands.StartWorkbenchCommand:Run ()
in [0x0039f]
(at /home/alex/mono.commit/MonoDevelop/Core/src/MonoDevelop.Startup/MonoDevelopMain.cs:169) MonoDevelop.SharpDevelopMain:Main (string[])


Anyone have a clue on those 2 exceptions?
-- 
Alexandre Miguel Pedro Gomes,
Portugal