[Mono-dev] Changes in mono makes monodevelop crashing

2006-11-17 Thread Hubert FONGARNAND
Just as information

It seem's that changes in Serialization in the .NET 2.0 profile break
monodevelop today

System.Runtime.Serialization.SerializationException: No element named
KeyComparer could be found.
  at System.Runtime.Serialization.SerializationInfo.GetValue
(System.String name, System.Type type) [0x0009b]
in 
/home/hubert/mono/mcs/class/corlib/System.Runtime.Serialization/SerializationInfo.cs:152
 
  at System.Collections.Hashtable.OnDeserialization (System.Object
sender) [0x00059]
in /home/hubert/mono/mcs/class/corlib/System.Collections/Hashtable.cs:578 
  at
System.Runtime.Serialization.ObjectManager.RaiseDeserializationEvent ()
[0x00076]
in 
/home/hubert/mono/mcs/class/corlib/System.Runtime.Serialization/ObjectManager.cs:169
 
  at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject 
(System.IO.BinaryReader reader) [0x0001a] in 
/home/hubert/mono/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:117
 
  at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph 
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object result, 
System.Runtime.Remoting.Messaging.Header[] headers) [0x00044] in 
/home/hubert/mono/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:105
 
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
 (System.IO.Stream serializationStream, 
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00079] in 
/home/hubert/mono/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:172
 
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize 
(System.IO.Stream serializationStream) [0x0] in 
/home/hubert/mono/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:129
 
  at MonoDevelop.Projects.Parser.CodeCompletionDatabase.ReadHeaders
(System.String baseDir, System.String name) [0x00022]
in 
/home/hubert/mono/monodev-stable/monodevelop-0.12/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/CodeCompletionDatabase.cs:176
 
  at
MonoDevelop.Projects.Parser.AssemblyCodeCompletionDatabase.CleanDatabase
(System.String baseDir, System.String name) [0x0]
in 
/home/hubert/mono/monodev-stable/monodevelop-0.12/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/AssemblyCodeCompletionDatabase.cs:212
 
  at MonoDevelop.Projects.Parser.ParserDatabase.DeleteObsoleteDatabases
() [0x00033]
in 
/home/hubert/mono/monodev-stable/monodevelop-0.12/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/DefaultParserService.cs:913
 
  at MonoDevelop.Projects.Parser.ParserDatabase.Initialize () [0x6]
in 
/home/hubert/mono/monodev-stable/monodevelop-0.12/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/DefaultParserService.cs:562
 
  at
MonoDevelop.Projects.Parser.DefaultParserService.CreateParserDatabase ()
[0x7]
in 
/home/hubert/mono/monodev-stable/monodevelop-0.12/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/DefaultParserService.cs:41
 
  at MonoDevelop.Ide.Gui.ProjectOperations..ctor () [0x00069]
in 
/home/hubert/mono/monodev-stable/monodevelop-0.12/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/ProjectOperations.cs:81
 
  at MonoDevelop.Ide.Gui.IdeApp.Initialize (IProgressMonitor monitor)
[0xa]
in 
/home/hubert/mono/monodev-stable/monodevelop-0.12/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Ide.cs:90
 
  at MonoDevelop.Ide.Gui.IdeStartup.Run (System.String[] args) [0x00328]
in 
/home/hubert/mono/monodev-stable/monodevelop-0.12/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IdeStartup.cs:157
 
___
Ce message et les éventuels documents joints peuvent contenir des informations 
confidentielles.
Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir 
le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce 
message non conforme à sa destination, toute diffusion ou publication, totale 
ou partielle et quel qu'en soit le moyen est formellement interdite.
Les communications sur internet n'étant pas sécurisées, l'intégrité de ce 
message n'est pas assurée et la société émettrice ne peut être tenue pour 
responsable de son contenu.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Changes in mono makes monodevelop crashing

2006-11-17 Thread Robert Jordan

Hubert FONGARNAND wrote:

Just as information

It seem's that changes in Serialization in the .NET 2.0 profile break
monodevelop today


This is due to this change in System.Collection.Hashtable:

2006-11-16  Miguel de Icaza  [EMAIL PROTECTED]

* Hashtable.cs: Serialize EqualityComparer.


The change introduced a deserialization incompatibility of data
serialized before the change.

Please try the attached patch.

Robert



System.Runtime.Serialization.SerializationException: No element named
KeyComparer could be found.
  at System.Runtime.Serialization.SerializationInfo.GetValue
(System.String name, System.Type type) [0x0009b]
in /home/hubert/mono/mcs/class/corlib/System.Runtime.Serialization/SerializationInfo.cs:152 
  at System.Collections.Hashtable.OnDeserialization (System.Object

sender) [0x00059]
in /home/hubert/mono/mcs/class/corlib/System.Collections/Hashtable.cs:578 
Index: System.Collections/Hashtable.cs
===
--- System.Collections/Hashtable.cs (revision 68053)
+++ System.Collections/Hashtable.cs (working copy)
@@ -575,7 +575,10 @@
loadFactor = (float) serializationInfo.GetValue 
(LoadFactor, typeof(float));
modificationCount = (int) serializationInfo.GetValue 
(Version, typeof(int));
 #if NET_2_0
-   equalityComparer = (IEqualityComparer) 
serializationInfo.GetValue (KeyComparer, typeof (object));
+   try {
+   equalityComparer = (IEqualityComparer) 
serializationInfo.GetValue (KeyComparer, typeof (object));
+   } catch (SerializationException) {
+   }
if (equalityComparer == null)
comparerRef = (IComparer) 
serializationInfo.GetValue (Comparer, typeof (object));
 #else
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list