English 中文(简体)
Clr 4.0 自动托管申请中的WPF用户配置
原标题:Cannot create a WPF UserControl in a Clr 4.0 self hosting application because of a stackoverflow error

我设法将《刑法》2.0列入Delphi胜诉的申请书,该申请能够在Delphi控制范围内建立和主办世界森林论坛控制,类似于温森林应用的ElementHost。

现在,我想把我的解决办法移至《刑法》第4条,除非我试图建立一个拥有相关Xaml资源的用户委员会,否则所有东西都会奏效。 在该案中,它造成了一种累进错,迫使这一进程退出! 但是,如果我通过守则(不读Xaml)建立一些世界森林论坛控制,那么所有东西都会奏效!

在我进入之前,我得以在框架守则中向前迈进。 XamlReader.LoadBaml 方法,在实施以下法典后不久即坠毁:

            // We don t actually use the GeneratedInternalTypeHelper any more.
            // But for v3 compat, don t allow loading of internals in PT unless there is one.
            Type internalTypeHelper = null;
            if (streamInfo.Assembly != null) 
            {
                try 
                { 
                    internalTypeHelper = XamlTypeMapper.GetInternalTypeHelperTypeFromAssembly(parserContext);
                } 
                // This can perform attribute reflection which will fail if the assembly has unresolvable
                // attributes. If that happens, just assume there is no helper.
                catch (Exception e)
                { 
                    if (MS.Internal.CriticalExceptions.IsCriticalException(e))
                    { 
                        throw; 
                    }
                } 
            }

请注意,装船也使用《刑法》第4条。

感谢您的帮助,

Morgan

问题回答

我发现这个问题,是因为在Stackoveflow(上设立了另一个员额。 在Delphi和没有JCL的情况下主办《刑法》——例如,见重要说明。

我不得不与Seta8087CW(133F美元)一道,然后, we子停止了!

I still have a weird behaviour though: everything s fine without any debugger, but if i run the app from VS2010, then a black wpf form is displayed preventing me from interacting with the content. However, if i run the app then attach with the debugger then everything s fine!





相关问题
WPF convert 2d mouse click into 3d space

I have several geometry meshes in my Viewport3D, these have bounds of (w:1800, h:500, d:25). When a user clicks in the middle of the mesh, I want the Point3D of (900, 500, 25)... How can I achieve ...

Editing a xaml icons or images

Is it possible to edit a xaml icons or images in the expression design or using other tools? Is it possible to import a xaml images (that e.g you have exported) in the expression designer for editing?...

WPF: writing smoke tests using ViewModels

I am considering to write smoke tests for our WPF application. The question that I am faced is: should we use UI automation( or some other technology that creates a UI script), or is it good enough to ...

WPF - MVVM - NHibernate Validation

Im facing a bit of an issue when trying to validate a decimal property on domain object which is bound to a textbox on the view through the viewmodel. I am using NHibernate to decorate my property on ...

How do WPF Markup Extensions raise compile errors?

Certain markup extensions raise compile errors. For example StaticExtension (x:Static) raises a compile error if the referenced class cannot be found. Anyone know the mechanism for this? Is it baked ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签