visual-studio - Windows Phone 分析 - 解析日志失败

标签 visual-studio windows-phone-7 memory-profiling

我是内存分析 Windows Phone 应用程序的新手。
在我停止内存分析 session 后,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()

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

谢谢。

最佳答案

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

关于visual-studio - Windows Phone 分析 - 解析日志失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11045540/

相关文章:

c# - 如何查看由 xml-comments 生成的完整文档

visual-studio - Visual Studio 2013 Update 5 需要永远安装/卸载

c++ - 是否可以在没有 Visual Studio 的情况下使用 MSVC 进行编译?

c# - 在 WP7 的 silverlight 中删除图像源

android - 如何使用 TraceView 对 Android 应用程序进行内存分析

c# - 如何在 visual studio 中为我的程序设置最大内存限制?

node.js - Cordova 平台添加 wp7 失败 - msbuild 错误

windows-phone-7 - 有没有办法以编程方式设置 Windows Phone 设置(如屏幕亮度)?

python - Python:无法复制内存使用情况的测试

go - 为什么在对象上使用 new() 不会包含在 Go 的内存分析文件中?