[Mono-bugs] [Bug 60442][Maj] Changed - PrivateBinPath bug again...
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 26 Jun 2004 01:07:11 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by vguzev@yandex.ru.
http://bugzilla.ximian.com/show_bug.cgi?id=60442
--- shadow/60442 2004-06-26 00:45:32.000000000 -0400
+++ shadow/60442.tmp.18897 2004-06-26 01:07:11.000000000 -0400
@@ -364,6 +364,179 @@
version?
------- Additional Comments From vguzev@yandex.ru 2004-06-26 00:45 -------
I used the daily package 0.96.20040624.
I'll try now Mono 1.0 candidate... and report about it in a few
minutes...
+
+------- Additional Comments From vguzev@yandex.ru 2004-06-26 01:07 -------
+OK! This example works now! :)
+However, it isn't working in the following case:
+
+[vadim@skif testdeserialization2]$
+cd /home/vadim/archive/tests/testdeserialization2
+[vadim@skif testdeserialization2]$ cat testload.cs
+using System;
+using System.IO;
+using System.Reflection;
+using System.Threading;
+using System.Runtime.Serialization.Formatters.Binary;
+
+public class A {
+ public static void Main( string[] args ) {
+ AppDomain.CurrentDomain.AppendPrivatePath
+( "/home/vadim/archive/tests/objs.object/object" );
+ FileStream fs = new FileStream
+( "/home/vadim/archive/tests/objs.object/object/serializedobject.txt",
+ FileMode.Open, FileAccess.Read );
+ BinaryFormatter bf = new BinaryFormatter();
+ object o = bf.Deserialize( fs );
+ fs.Close();
+
+ Console.WriteLine( o );
+
+ Type t = o.GetType();
+ MethodInfo mi = t.GetMethod( "SayHello" );
+ mi.Invoke( o, new object[] {} );
+ }
+}
+[vadim@skif testdeserialization2]$
+ls "/home/vadim/archive/tests/objs.object/object/serializedobject.txt"
+-rw-r--r-- 1 vadim vadim 115 Jun 26
+08:45 /home/vadim/archive/tests/objs.object/object/serializedobject.tx
+t
+[vadim@skif testdeserialization2]$ pwd
+/home/vadim/archive/tests/testdeserialization2
+[vadim@skif testdeserialization2]$ mcs testload.cs
+Mono-INFO: Assembly Loader probing location: 'mscorlib.dll'.
+Mono-INFO: Assembly Loader probing
+location: '/home/vadim/mcsharp.cluster/lib/mscorlib.dll'.
+Mono-INFO: Assembly Loader probing
+location: '/home/vadim/mcsharp.cluster/bin/mscorlib.dll'.
+Mono-INFO: Assembly Loader probing
+location: '/home/vadim/mcsharp.cluster/lib/mscorlib.dll'.
+Mono-INFO: Assembly Loader probing
+location: '/home/vadim/mcsharp.cluster/bin/mscorlib.dll'.
+Mono-INFO: Assembly Loader probing location: '/home/vadim/mono/m-
+0.97/lib/mscorlib.dll'.
+Mono-INFO: Assembly Loader loaded assembly from
+location: '/home/vadim/mono/m-0.97/lib/mscorlib.dll'.
+Mono-INFO: Assembly Loader probing location: '/home/vadim/mono/m-
+0.97/lib/mono/1.0/mcs.exe'.
+Mono-INFO: Assembly Loader probing location: '/home/vadim/mono/m-
+0.97/lib/mono/gac/System/1.0.5000.0__b77a5c561934e089/System.dll'.
+Mono-INFO: Assembly Loader probing location: '/home/vadim/mono/m-
+0.97/lib/mono/gac/System.Xml/1.0.5000.0__b77a5c561934e089/System.Xml.d
+ll'.
+Mono-INFO: Assembly Loader loaded assembly from
+location: '/home/vadim/mono/m-
+0.97/lib/mono/gac/System.Xml/1.0.5000.0__b77a5c561934e089/System.Xml.d
+ll'.
+Mono-INFO: Assembly Loader loaded assembly from
+location: '/home/vadim/mono/m-
+0.97/lib/mono/gac/System/1.0.5000.0__b77a5c561934e089/System.dll'.
+Mono-INFO: Assembly Loader loaded assembly from
+location: '/home/vadim/mono/m-0.97/lib/mono/1.0/mcs.exe'.
+Mono-INFO: Assembly Loader probing location: '/home/vadim/mono/m-
+0.97/lib/mono/1.0/mcs.exe'.
+Mono-INFO: Assembly Loader loaded assembly from
+location: '/home/vadim/mono/m-0.97/lib/mono/1.0/mcs.exe'.
+Mono-INFO: Assembly Loader probing location: '/home/vadim/mono/m-
+0.97/lib/mono/1.0/System.dll'.
+Mono-INFO: Assembly Loader loaded assembly from
+location: '/home/vadim/mono/m-0.97/lib/mono/1.0/System.dll'.
+Mono-INFO: Assembly Loader probing location: '/home/vadim/mono/m-
+0.97/lib/mono/1.0/System.Xml.dll'.
+Mono-INFO: Assembly Loader loaded assembly from
+location: '/home/vadim/mono/m-0.97/lib/mono/1.0/System.Xml.dll'.
+Compilation succeeded
+[vadim@skif testdeserialization2]$ mono testload.exe
+Mono-INFO: Assembly Loader probing location: 'mscorlib.dll'.
+Mono-INFO: Assembly Loader probing
+location: '/home/vadim/mcsharp.cluster/lib/mscorlib.dll'.
+Mono-INFO: Assembly Loader probing
+location: '/home/vadim/mcsharp.cluster/bin/mscorlib.dll'.
+Mono-INFO: Assembly Loader probing
+location: '/home/vadim/mcsharp.cluster/lib/mscorlib.dll'.
+Mono-INFO: Assembly Loader probing
+location: '/home/vadim/mcsharp.cluster/bin/mscorlib.dll'.
+Mono-INFO: Assembly Loader probing location: '/home/vadim/mono/m-
+0.97/lib/mscorlib.dll'.
+Mono-INFO: Assembly Loader loaded assembly from
+location: '/home/vadim/mono/m-0.97/lib/mscorlib.dll'.
+Mono-INFO: Assembly Loader probing location: 'testload.exe'.
+Mono-INFO: Assembly Loader loaded assembly from
+location: 'testload.exe'.
+Mono-INFO: Assembly Loader probing location: 'testload.exe'.
+Mono-INFO: Assembly Loader loaded assembly from
+location: 'testload.exe'.
+Mono-INFO: Assembly Loader probing location: '/home/vadim/mono/m-
+0.97/lib/obj.dll'.
+
+Unhandled Exception: System.IO.FileNotFoundException: File 'obj,
+Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' not found.
+in (unmanaged) (wrapper managed-to-native)
+System.AppDomain:LoadAssembly (string,System.Security.Policy.Evidence)
+in <0x00004> (wrapper managed-to-native)
+System.AppDomain:LoadAssembly (string,System.Security.Policy.Evidence)
+in <0x0006b> (wrapper remoting-invoke-with-check)
+System.AppDomain:LoadAssembly (string,System.Security.Policy.Evidence)
+in <0x0006b> System.AppDomain:Load (string)
+in <0x00058> (wrapper remoting-invoke-with-check)
+System.AppDomain:Load (string)
+in <0x0001d> System.Reflection.Assembly:Load (string)
+in <0x00073>
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:GetDeseria
+lizationType (long,string)
+in <0x00229>
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadTypeMe
+tadata (System.IO.BinaryReader,bool)
+in <0x00049>
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObject
+Instance
+(System.IO.BinaryReader,bool,long&,object&,System.Runtime.Serializatio
+n.SerializationInfo&)
+in <0x00091>
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObject
+
+(System.Runtime.Serialization.Formatters.Binary.BinaryElement,System.I
+O.BinaryReader,long&,object&,System.Runtime.Serialization.Serializatio
+nInfo&)
+in <0x0018f>
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObject
+
+(System.Runtime.Serialization.Formatters.Binary.BinaryElement,System.I
+O.BinaryReader,long&,object&,System.Runtime.Serialization.Serializatio
+nInfo&)
+in <0x0007d>
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextOb
+ject (System.IO.BinaryReader)
+in <0x000b1>
+System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObject
+Graph
+(System.IO.BinaryReader,bool,object&,System.Runtime.Remoting.Messaging
+.Header[]&)
+in <0x00191>
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deseria
+lize
+(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
+in <0x00017>
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deseria
+lize (System.IO.Stream)
+in <0x00095> A:Main (string[])
+
+[vadim@skif testdeserialization2]$ ls
+total 16
+drwxr-xr-x 2 vadim vadim 4096 Jun 25 02:28 .
+drwxrwxr-x 53 vadim vadim 4096 Jun 26 08:46 ..
+-rw-r--r-- 1 vadim vadim 663 Jun 26 08:54 testload.cs
+-rwxr-xr-x 1 vadim vadim 3584 Jun 26 08:56 testload.exe
+[vadim@skif testdeserialization2]$ mono --version
+Mono JIT compiler version 0.97, (C) 2002-2004 Novell, Inc and
+Contributors. www.go-mono.com
+ TLS: normal
+ GC: Included Boehm (with typed GC)
+ SIGSEGV : normal
+ Globalization: ICU
+
+Could you, please, check it?
+