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

Re: Re: セーブロードの時間


ちょっと調べてみましたが、StockMarketの解決ができなくてonAssemblyResolveが何度も何度も呼び出されているのが直接の原因のようです。
添付のスタックトレースを見ると、delegateの参照部分が問題らしいので、もう少し調べてNonSerializeにするなどの回避策を検討してみます。

ところで、この"StockMarket"というのはどこに設定された値を調べているのでしょうか?
アプリが正常に名前解決できるような方向に持っていくことはできないのでしょうか?

>	freetrain.core.dll!freetrain.framework.plugin.PluginManager.onAssemblyResolve(System.Object sender = {System.AppDomain}, System.ResolveEventArgs args = {System.ResolveEventArgs}) 行 64	C#
 	mscorlib.dll!System.AppDomain::OnAssemblyResolveEvent(String* assemblyFullName = "StockMarket, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null") + 0x9cバイト	
 	mscorlib.dll!System.Reflection.Assembly::InternalLoad(System.Reflection.AssemblyName assemblyRef = {System.Reflection.AssemblyName}, bool stringized = true, System.Security.Policy.Evidence assemblySecurity = null, System.Threading.StackCrawlMark stackMark = LookForMyCaller) + 0x194バイト	
 	mscorlib.dll!System.Reflection.Assembly::InternalLoad(String* assemblyString = "StockMarket, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", System.Security.Policy.Evidence assemblySecurity = null, System.Threading.StackCrawlMark stackMark = LookForMyCaller) + 0x69バイト	
 	mscorlib.dll!System.Reflection.Assembly::Load(String* assemblyString = "StockMarket, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null") + 0x1fバイト	
 	mscorlib.dll!System.Runtime.Serialization.FormatterServices::LoadAssemblyFromString(String* assemblyName = "StockMarket, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null") + 0x14バイト	
 	mscorlib.dll!System.DelegateSerializationHolder::GetDelegate(System.DelegateSerializationHolder.DelegateEntry de = {System.DelegateSerializationHolder.DelegateEntry}) + 0x109バイト	
 	mscorlib.dll!System.DelegateSerializationHolder::GetRealObject(System.Runtime.Serialization.StreamingContext context = {System.Runtime.Serialization.StreamingContext}) + 0x36バイト	
 	mscorlib.dll!System.Runtime.Serialization.ObjectManager::ResolveObjectReference(System.Runtime.Serialization.ObjectHolder holder = {System.Runtime.Serialization.ObjectHolder}) + 0x7aバイト	
 	mscorlib.dll!System.Runtime.Serialization.ObjectManager::DoFixups() + 0x128バイト	
 	mscorlib.dll!System.Runtime.Serialization.Formatters.Binary.ObjectReader::Deserialize(System.Runtime.Remoting.Messaging.HeaderHandler handler = null, System.Runtime.Serialization.Formatters.Binary.__BinaryParser serParser = {System.Runtime.Serialization.Formatters.Binary.__BinaryParser}, bool fCheck = true, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage = null) + 0x159バイト	
 	mscorlib.dll!System.Runtime.Serialization.Formatters.Binary.BinaryFormatter::Deserialize(System.IO.Stream serializationStream = {System.IO.FileStream}, System.Runtime.Remoting.Messaging.HeaderHandler handler = null, bool fCheck = true, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage = null) + 0x150バイト	
 	mscorlib.dll!System.Runtime.Serialization.Formatters.Binary.BinaryFormatter::Deserialize(System.IO.Stream serializationStream = {System.IO.FileStream}, System.Runtime.Remoting.Messaging.HeaderHandler handler = null) + 0x1eバイト	
 	mscorlib.dll!System.Runtime.Serialization.Formatters.Binary.BinaryFormatter::Deserialize(System.IO.Stream serializationStream = {System.IO.FileStream}) + 0x19バイト	
 	freetrain.core.dll!freetrain.world.World.load(System.Runtime.Serialization.IFormatter f = {System.Runtime.Serialization.Formatters.Binary.BinaryFormatter}, System.IO.Stream stream = {System.IO.FileStream}) 行 491 + 0x13バイト	C#
 	freetrain.core.dll!freetrain.framework.MainWindow.loadGame(System.Runtime.Serialization.IFormatter f = {System.Runtime.Serialization.Formatters.Binary.BinaryFormatter}, System.IO.Stream stream = {System.IO.FileStream}) 行 1110 + 0xfバイト	C#
 	freetrain.core.dll!freetrain.framework.MainWindow.loadGame(System.IO.FileInfo file = {System.IO.FileInfo}) 行 1084	C#

_______________________________________________
FreeTrain-general mailing list
FreeTrain-general@lists.sourceforge.jp
http://lists.sourceforge.jp/mailman/listinfo/freetrain-general

題名

名前

メッセージ