我是内存分析Windows Phone应用程序的新手。 停止内存分析会话后,Visual Studio会尝试解析日志,并使用“解析日志文件失败”消息进行故障转移。 我看到%temp%目录中的“ProfilerLog_”文件并收到此消息:
System.ArgumentException: Item has already been added. Key in dictionary: '226295856' Key being added: '226295856'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at SilverlightProfiler.Internal.CFAdapter.HandleEvent(UInt32 eventID, ProbeMarkerType eventMarkerType, Double clockTime, Double threadTime, UInt32 threadID, ThreadType threadType, List`1 eventInfoList)
at SilverlightProfiler.Internal.WPInputAdapter.HandleEvent(ProbeEventSource eventSource, UInt32 eventID, ProbeMarkerType eventMarkerType, Double clockTime, Double threadTime, UInt32 threadID, ThreadType threadType, List`1 eventInfoList)
at SilverlightProfiler.Internal.WPInputAdapter.HandleEvent(BinaryReader input, Int64 endOffset, ThreadStreamInfo threadStreamInfo)
at SilverlightProfiler.Internal.WPInputAdapter.HandleEvents()
at SilverlightProfiler.Internal.WPInputAdapter.ParseLogFile(BinaryReader input, String logFilename, AgLogFileHeader header)
at SilverlightProfiler.Internal.WPInputAdapter.Parse(Object data)
at SilverlightProfiler.Internal.ViewModel.AnalyzingViewModel.startAnalyzing()
可能有人遇到过这个问题并找到了解决办法吗?
感谢。
答案 0 :(得分:2)
我也有这个问题。我删除了临时文件夹中的所有文件,并且分析工作再次开始工作。不确定这只是巧合,但也许值得一试。