作業中のアプリケーションでまれな問題が発生しました。これはめったに発生しませんが、ページ間を移動するたびに発生するわけではなく、頭を抱えているようには見えません。読んでいて、これが無効なクロススレッドアクセスに関連している可能性があるという半決定的な理論に引き寄せられました。スタックトレースは次のとおりです。
System.Reflection.TargetInvocationException, mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e Message: [Arg_TargetInvocationException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.10411.00&File=mscorlib.dll&Key=Arg_TargetInvocationException HelpLink:
StackTrace: at System.Windows.Navigation.PageResourceContentLoader.EndLoad(IAsyncResult asyncResult)
at System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback(IAsyncResult result)
at System.Windows.Navigation.PageResourceContentLoader.BeginLoad_OnUIThread(AsyncCallback userCallback, PageResourceContentLoaderAsyncResult result)
at System.Windows.Navigation.PageResourceContentLoader.<>c__DisplayClass4.<BeginLoad>b__0(Object args)
2013-02-01 15:56:43,593 [5640] DEBUG WellguideViewModel.class - RefreshGraphValues method called
MachineName:2013-02-01 15:53:53,548 [5640] DEBUG WellViewModel.class - WellViewModel constructor called
MachineName:2013-02-01 15:56:44,625 [1836] DEBUG WellguideViewModel.class - RefreshGraphValues method called
うまくいけば、誰かが助けることができるでしょう:)
-- また、この問題は ui 要素の描画に関連している可能性があることを理解しているため、コンポーネントがキャンバス上にいくつかの線 (具体的には PathFigure) を描画していることに言及する必要があります。
良い週末を!