导航页面时出现UnhandledException 0x8000ffff

时间:2011-12-27 05:57:24

标签: windows-phone-7 unhandled-exception

我是WP7应用程序的新手,面临一个奇怪的问题。当我从一个页面导航到另一个页面时,我的应用程序崩溃了。它适用于特定场景,在其他两种情况下失败。 我附上源代码供参考,希望能找到解决方案。我还看了另一个线程,看看我做错了什么但找不到它。以下是生成问题的步骤:

  • 运行应用程序后,单击“Water”,页面将导航到“WebPage.xaml”并将加载相应的Web内容。
  • 现在点击模拟器上的“返回”按钮,您将获得与“水”及其描述相同的屏幕。
  • 按预期工作。
  • 现在点击指向“右”的箭头,新内容将加载到“MainPage.xaml”上,其中包含“甲烷”的详细信息。
  • 点击“Methane”导航并加载网页内容为“Methane”的“WebPage.xaml”。
  • 现在点击模拟器上的“后退”按钮和应用程序崩溃。我想知道相同的过程或步骤与“水”工作正常,并为“甲烷”失败。

这是内部异常捕获...“无法评估表达式” 和堆栈跟踪...

    at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
    at MS.Internal.XcpImports.UIElement_Measure(UIElement element, Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
    at MS.Internal.XcpImports.MeasureNative(IntPtr element, Single inWidth, Single inHeight)
    at MS.Internal.XcpImports.UIElement_Measure(UIElement element, Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
    at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
    at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
    at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
    at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
    at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
    at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
    at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
    at Microsoft.Phone.Controls.PhoneApplicationFrame.MeasureOverride(Size availableSize)
    at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)

0 个答案:

没有答案