• 调试腾讯微博 win8 版 共享失败的问题


    我是社交控,喜欢分享内容。分享到 腾讯微博时总失败,心想不能就这么算了,要看看异常的细节。

    在VS 2012里,我选择 Debug > Debug Installed App Package, 搜索微博,找到腾讯微博。Start

    再次共享内容到腾讯微博,随便共享点什么,bingo,ArgumentException 出来了:Value does not fall within the expected range

    详细的异常信息如下,希望微博的开发早点解决这个问题:

    System.ArgumentException was unhandled

      HResult=-2147024809

      Message=Value does not fall within the expected range.

      Source=mscorlib

      StackTrace:

           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

           at MBModern.Share.ShareWritePage.<PageLoaded>d__2.MoveNext()

        --- End of stack trace from previous location where exception was thrown ---

           at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(Object state)

           at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()

        --- End of stack trace from previous location where exception was thrown ---

           at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

           at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

           at System.Threading.ThreadPoolWorkQueue.Dispatch()

      InnerException:

    另外 也尝试了用windbg 去调试这个问题,遗憾没有准确捕捉到 共享失败时的异常,可能windbg 异常的配置不合理吧。下边的错误消息能说明一定的问题。

    Sat Jun 21 20:15:16.372 2014 (UTC + 8:00): Error: Converter failed to convert value of type 'Windows.Foundation.String' to type 'Uri'; BindingExpression: Path='DataAccount.faceurl' DataItem='MBModern.ListView.ListItemTemplate.DataModel.DataPersonalStatus, MBModern, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; target element is 'MBModern.Components.PictureView' (Name='HeadIcon'); target property is 'PicUri' (type 'Uri').

  • 相关阅读:
    13_graphicals_view.md
    8_菜单栏、工具栏和状态栏.md
    2_按钮&对象数.md
    11_事件.md
    9_对话框.md
    序列化与反序列化 未知结构的数据 Any interface类型
    nil 接口不是 nil
    图片存储格式之一,由JPEG格式衍生而来,后缀为".jfif"。
    Why goroutines instead of threads? https://go.dev/doc/faq#atomic_maps
    源码 //go:nosplit
  • 原文地址:https://www.cnblogs.com/monster1799/p/3801456.html
Copyright © 2020-2023  润新知