【问题标题】:VS2010 - Wpf editor crashes when using threadsVS2010 - Wpf 编辑器在使用线程时崩溃
【发布时间】:2011-02-22 01:54:19
【问题描述】:

有没有办法在设计器中禁用 wpf 表单加载?

每当我在我的应用程序中放置启动单独线程的控件时,wpf 编辑器都会在加载时使我的 Visual Studio 崩溃。

通过忽略vs2010错误弹出窗口,我设法继续使用wpf,但这很烦人。

错误信息是:

Process Name:   devenv.exe : C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe    
Process Architecture:   x86
Exception Code: 0xC0000005
Exception Information:  The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Heap Information:   Not Present

【问题讨论】:

    标签: wpf multithreading visual-studio-2010


    【解决方案1】:

    您需要修改控件以检查它们是否处于设计模式,如果是,则不要执行任何操作。

    你应该检查DesignerProperties.GetIsInDesignMode(this)

    【讨论】:

      猜你喜欢
      • 2011-10-29
      • 2019-01-23
      • 1970-01-01
      • 1970-01-01
      • 2019-04-21
      • 1970-01-01
      • 2010-09-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多