2

リリースしようとしているアプリケーションを必死にデバッグしようとしています。Win7 x64で作成され、Win x32でも正常に動作しますが、XPでは動作しません(テストするVistaはありません)。

XPのアプリケーションのディレクトリに_NT_SYMBOL_PATHを設定してダンプファイルを作成し、次のコマンドでデバッガーを実行します:adplus -crash -pn launchmenot.exe

これにより、Visual Studio 2008で開いたダンプファイルが作成されます(アプリケーションのPDBとVSのMSシンボルサーバーのディレクトリを指定しました。VSが取得したすべてのシンボルをダウンロードした後、'に使用できるソースコードはありません。現在位置'。

XPでWin7のInterop.IWshRuntimeLibraryを使用している可能性があると感じていますが、実際にはわかりません。

ダンプファイルは107Mbですが、アプリ自体はここでオンラインになっています(デバッグモードでコンパイルされています)。原因を見つけたり、エラーを修正したりするために、誰かが私を正しい方向に向けることができますか?

とても有難い。:)

4

3 に答える 3

3

このエラーメッセージはあなたにとって何か意味がありますか?

属性「Icon」の文字列「pack:// application:,,, / Resources/icon.ico」をタイプ「System.Windows.Media.ImageSource」のオブジェクトに変換できません。画像形式が認識されません。マークアップファイル'LaunchMeNot;component/winunhandledexception.xaml'のオブジェクト'LaunchMeNot.WinUnhandledException'でエラーが発生しました。行10の位置46。

編集:この最後の例外は、実際には未処理の例外フィルターからスローされ、致命的になります。問題をより詳細に説明する2つの内部例外があります。それはすべてこのトレースから始まります:

0012e44c 7c812afb [HelperMethodFrame: 0012e44c] 
0012e4f0 54fc6b82 System.Windows.Media.PixelFormat.GetPixelFormat(System.Windows.Media.SafeMILHandle)
0012e534 547ca498 System.Windows.Media.Imaging.BitmapSource.UpdateCachedSettings()
0012e56c 547ca431 System.Windows.Media.Imaging.BitmapSource.set_WicSourceHandle(System.Windows.Media.Imaging.BitmapSourceSafeMILHandle)
0012e598 547ca198 System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()
0012e5c8 54fc6e86 System.Windows.Media.Imaging.BitmapSource.CompleteDelayedCreation()
0012e5f4 547cb3a8 System.Windows.Media.Imaging.BitmapSource.get_PixelWidth()
0012e600 56290f1f MS.Internal.AppModel.IconHelper.GetBestMatch(System.Collections.ObjectModel.ReadOnlyCollection`1<System.Windows.Media.Imaging.BitmapFrame>, Int32, Int32, Int32)
0012e678 5629168f MS.Internal.AppModel.IconHelper.GetIconHandlesFromBitmapFrame(System.Object, System.Windows.Media.Imaging.BitmapFrame, IconHandle ByRef, IconHandle ByRef)
0012e698 565df5fd System.Windows.Window.UpdateIcon()
0012e6b0 55c8ed3a System.Windows.Window.SetupInitialState(Double, Double, Double, Double)
0012e854 55c266c8 System.Windows.Window.CreateSourceWindowImpl()
0012e8d0 55c264b9 System.Windows.Window.SafeCreateWindow()
0012e8dc 55c263c1 System.Windows.Window.ShowHelper(System.Object)
0012e904 55c8e3b8 System.Windows.Window.Show()
0012e910 562076e7 System.Windows.Window.ShowDialog()
0012e984 00f70556 LaunchMeNot.App.OnStartup(System.Windows.StartupEventArgs)
0012e9f8 55bed4b9 System.Windows.Application.<.ctor>b__0(System.Object)
0012ea08 578461fa System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Boolean)
0012ea2c 578460ea System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Boolean, System.Delegate)
0012ea74 578442b4 System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate, System.Object, Boolean, System.Delegate)
0012ea94 5784912d System.Windows.Threading.DispatcherOperation.InvokeImpl()
0012eac0 578490b8 System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
0012eac8 792f5681 System.Threading.ExecutionContext.runTryCode(System.Object)
0012eef0 79e71b4c [HelperMethodFrame_PROTECTOBJ: 0012eef0] System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
0012ef58 792f5577 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
0012ef74 792e01c5 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
0012ef8c 57848ff3 System.Windows.Threading.DispatcherOperation.Invoke()
0012efc4 57843957 System.Windows.Threading.Dispatcher.ProcessQueue()
0012f0a0 57843c43 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
0012f0ec 578463de MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
0012f138 5784630a MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
0012f148 578461fa System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Boolean)
0012f16c 578460ea System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Boolean, System.Delegate)
0012f1b4 578442b4 System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate, System.Object, Boolean, System.Delegate)
0012f1d4 57843411 System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Boolean)
0012f218 57843360 System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority, System.Delegate, System.Object)
0012f23c 57845a4c MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
0012f3b4 0036217b [NDirectMethodFrameStandalone: 0012f3b4] MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
0012f3c4 57843a57 System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
0012f414 57843129 System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
0012f420 578430cc System.Windows.Threading.Dispatcher.Run()
0012f42c 55bed47e System.Windows.Application.RunDispatcher(System.Object)
0012f438 55bec77f System.Windows.Application.RunInternal(System.Windows.Window)
0012f45c 55bd3a96 System.Windows.Application.Run(System.Windows.Window)
0012f46c 55bd3a59 System.Windows.Application.Run()
0012f478 00f700bc LaunchMeNot.App.Main()

これは、画像リソースに問題があることを明確に示しています。埋め込まれた例外は次のとおりです。

HRESULTからの例外:0x88982F07

包まれた:

画像形式が認識されません。

少しグーグルした後、私はこの投稿に出くわしました。認識されない形式のアイコンのように見えます。投稿は、アイコンを削除することを提案し続けています。私の推測では、準拠したエディターでそれらをやり直すことができると思います。

于 2010-02-15T20:35:59.450 に答える
1

wndbgでもう少し運が良かったかもしれません-Windows用のデバッグツールページからダウンロードしてください。クラッシュダンプをロードし、シンボルパスを設定して実行!analyze -vし、クラッシュの詳細情報を取得します。それでも正しい記号を見つけるのに問題がある場合は、実行!sym noisyしてみてください。また、!itoldyousoコマンドも実行してください。

于 2010-02-15T13:48:34.893 に答える
0

WinDebugを使用してダンプを分析します。これは、マネージコードにも使用できます。

詳細については、TessFerrandezによるブログエントリを参照してください。

于 2010-02-15T13:48:59.120 に答える