문제

릴리스하려는 응용 프로그램을 디버깅하려고합니다. Win7 X64에서 만들어졌으며 Win X32에서도 잘 실행되지만 XP에서는 그렇지 않습니다 (비스타는 테스트 할 수 없습니다).

xp의 응용 프로그램 디렉토리에 _nt_symbol_path를 설정하여 덤프 파일을 만들고 다음을 사용하여 디버거를 실행합니다.

이것은 Visual Studio 2008에서 열린 덤프 파일을 만듭니다 (응용 프로그램의 PDBS 및 MS 기호 서버의 디렉토리를 지정하여 vs vs vs vs vs 다운로드 '방금 얻을 수있는 모든 기호'에 사용할 수있는 소스 코드가 없습니다. 현재 위치'.

XP의 Win7의 interop.iwshruntimelibrary를 사용하는 것이 느낌이 들지만 실제로 모르겠습니다.

덤프 파일은 107MB이지만 앱 자체는 온라인입니다. 여기 (디버그 모드에서 컴파일). 원인을 찾거나 오류를 고치기위한 올바른 방향으로 나를 지적 할 수 있습니까?

매우 감사. :)

도움이 되었습니까?

해결책

이 오류 메시지가 귀하에게 의미가 있습니까?

문자열 'pack : // application : ,,/resources/icon.ico'속성 '아이콘'의 'system.windows.media.imagesource'의 객체로 변환 할 수 없습니다. 이미지 형식은 인식되지 않습니다. 마크 업 파일 '런치 메노트; component/winunhandledException.xAml'라인 10 위치에서 오브젝트 '런치 메 노트.

편집 :이 마지막 예외는 실제로 처리되지 않은 예외 필터에서 던져지고 치명적입니다. 문제를 더 자세히 설명하는 두 가지 내부 예외가 있습니다. 그것은 모두이 흔적으로 시작합니다.

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

래핑 :

이미지 형식은 인식되지 않습니다.

약간의 인터넷 검색 후 나는 만났다 이 게시물 비슷한 결과를 자세히 설명합니다. 인식되지 않은 형식의 아이콘처럼 보입니다. 게시물은 계속해서 아이콘을 제거 할 것을 제안합니다. 내 생각에, 당신은 당신이 준수 편집기에서 그들을 시도하고 다시 할 수 있다는 것입니다.

다른 팁

WNDBG에서 조금 더 운이있을 수 있습니다. 다운로드 Windows 페이지의 디버깅 도구. 충돌 덤프를로드하고 심볼 경로를 설정하고 실행하십시오. !analyze -v 충돌에 대한 자세한 정보를 얻으려면. 여전히 올바른 기호를 찾는 데 문제가있는 경우 실행을 시도하십시오. !sym noisy 그리고 또한 !내가 그렇게 말했 명령

사용 Windebug 덤프를 분석하려면 관리 코드에도 사용할 수도 있습니다.

참조 블로그 항목 더 많은 정보를 위해 Tess Ferrandez.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top