English 中文(简体)
Managed DirectX running from .Net Framework 4.0 app dont hunt
原标题:

I work on a product that uses Managed DirectX for data visualizations. I was trying to upgrade this product to .net framework 4.0, but I think I m having issues with Managed DirectX and .Net 4.0 playing together.

The main assembly does not reference managed directX. But when it tries to call into an assembly that does reference managed directX...everthing "halts". Its like the debugger just decided not to step into the assembly. I get no exception, nothing. And when I hit the pause button, the process is sitting on the call into the assembly that references Managed DirectX.

Is there a known compatibility issue with .Net 4.0 and Managed DirectX?

最佳回答

Just in case there is one other shop out there using Managed DirextX with .Net 4.0, if you put the following config entry in your app config, it ll allow you to do it.

<startup useLegacyV2RuntimeActivationPolicy="true">
  <supportedRuntime version="v4.0"/>
</startup>

The problem is that the MDX mixed mode assemblies were compiled against 1.1 runtime, and the way CLR 4.0 loads mixed mode assemblies changed, so this config file entry will allow the CLR 4.0 runtime to use lagacy assembly loading.

问题回答

暂无回答




相关问题
Prerequisite for learning directx

I am from .net C# background and I want to learn DirectX. I have knowledge of C++ but I am fairly new to graphic world. I am little confused about how to start learning directx, should I start ...

How to programmatically disable the auto-focus of a webcam?

I am trying to do computer vision using a webcam (the model is Hercules Dualpix). I know it is not the ideal camera to use, but I have no choice here. The problem is the auto-focus makes it hard/...

Making an object orbit a fixed point in directx?

I am trying to make a very simple object rotate around a fixed point in 3dspace. Basically my object is created from a single D3DXVECTOR3, which indicates the current position of the object, ...

3d Alternative for D3DXSPRITE for billboarding

I am looking to billboard a sun image in my 3d world (directx 9). Creating a D3DXSPRITE is great in some cases, but it is only a 2d object and can not exist in my "world" as a 3d object. What is ...

热门标签