您的位置:程序门 -> .net技术 -> c#



天大的怪事了?!c++/cli中mdx问题,c#中就完全没有问题


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


天大的怪事了?!c++/cli中mdx问题,c#中就完全没有问题
发表于:2007-01-16 23:30:16 楼主
在c++/cli的win   app中使用mdx,编译可以通过,一按f5运行,就弹出下列错误。


managed   debugging   assistant   'loaderlock '   has   detected   a   problem   in   'e:\test\dxtest\debug\dxtest.exe '.
additional   information:   dll   'c:\windows\assembly\gac\microsoft.directx.direct3d\1.0.2902.0__31bf3856ad364e35\microsoft.directx.direct3d.dll '   is   attempting   managed   EXECution   inside   os   loader   lock.   do   not   attempt   to   run   managed   code   inside   a   dllmain   or   image   initialization   function   since   doing   so   can   cause   the   application   to   hang.


同样的写法在c#中一点问题没有,只不过是把c#语法翻译成c++/cli的而已。

用的是directx_sdk_dec2006版的。


快速检索

最新资讯
热门点击