C# 遇到 R6034 Runtime Error的解决办法

来源:互联网 发布:西安行知小学地址 编辑:程序博客网 时间:2024/04/29 11:19

最近在开发个GIS小工具,用到了ArcgisEngine的gp工具MultipleRingBuffer,在调试的时候提示LoderLock的错误,在vs2010中【调试】-【异常】-【Managed Debugging Assistants】中把LoderLock的勾去掉了,再调试却出现另外一个错误,找了好久终于找到了解决方法。

Error: R6034 Runtime Error! An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information

An application manifest should be added to the Engine application to ensure the correct msvcr90.dll (required by Python) is loaded. In Visual Studio,Add New Item > Application Manifest File (app.manifest). Add the following XML into the app.manifest:

<?xml version="1.0" encoding="utf-8"?><assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">  <assemblyIdentity ..../>  <trustInfo .../>  <compatibility .../>  <dependency>    <dependentAssembly>      <assemblyIdentity type="win32" name="Microsoft.vc90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"/>    </dependentAssembly>  </dependency></assembly>
参考网址:http://support.esri.com/technical-article/000013127
0 0
原创粉丝点击