5

我是内存分析 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()

可能有人遇到过这个问题并找到一些解决方案?

谢谢。

4

1 回答 1

2

我也有这个问题。我从我的临时文件夹中删除了所有文件,并且分析再次开始工作。不确定这是否只是巧合,但也许值得一试。

于 2013-06-12T13:01:12.687 回答