2012-06-15 81 views
5

我是內存分析Windows Phone應用程序的新手。 在停止內存分析會話之後,Visual Studio嘗試解析日誌,並使用消息「解析日誌文件失敗」失敗。 我看到在%temp%目錄下的「ProfilerLog_」文件,並得到這個消息:Windows Phone分析 - 解析日誌失敗

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() 

可能有人已經碰到這樣的問題,並找到了一些解決方案?

謝謝。

回答

2

我也有這個問題。我從我的臨時文件夾中刪除了所有文件,分析開始重新開始工作。不知道這只是一個巧合,但也許值得嘗試。

+0

你指的是哪個臨時文件夾? –

+0

C:\ Users \ \ AppData \ Local \ Temp – sast