LoadFromContext Occurred

前端 未结 3 569
逝去的感伤
逝去的感伤 2020-12-29 21:29

I have a very simple C# problem that loads a Windows WPF window from a library. Here\'s the code:

public partial class App : Application
{
    public App()
          


        
3条回答
  •  孤独总比滥情好
    2020-12-29 21:40

    In VS2015 I am getting two exceptions from WpfXamlDiagnosticsTap.dll

    1. The first one is "LoadFromContext" and it occurs when activating the first window.
    2. The second one is "NotMarshalable" and it occurs when closing that window.

    Simply ignoring those two Exception types allows me to run the application, and use the UI Debugging tools. I haven't observed any adverse effects.

提交回复
热议问题