ArcGIS10.4 Runtime Error R6034

现在甲方采购的ArcGIS Desktop正版,一般都是较高的版本(10.4或10.4.1),但10.4经常报出C++ Runtime R6034错误。

问题描述

"Microsoft Visual C++ Runtime Library"

Runtime Error!

Program: C...

R6034

An application has made an attempt to load the C runtime library incorrectly.

Please contact the application's support team for more information.

桌面端解决

官方说这确实是一个bug,下载补丁程序,安装后即可解决:

R6034补丁官网地址(10.4版)

R6034补丁官网地址(10.4.1版)

开发时解决

但开发时,在调用GP时仍然会弹出此窗;经测试,需要修改配置文件解决,具体方法如下:

新建一个应用程序清单文件:

在其中加入如下代码:

<!--防止弹出Runtime Error R6034错误窗体-->
<dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.vc90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"/>
  </dependentAssembly>
</dependency>

另外,调用GP时有时会报如下错误,但不影响结果,解决方法是在arcgis安装目录下拷备GpMetadataFunctions.dll到程序目录,然后引用即可:

"未能加载文件或程序集"GpMetadataFunctions, Version=10.4.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86"或它的某一个依赖项。系统找不到指定的文件"。

参考

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 (esri.com)

ArcGIS for Desktop and ArcReader Runtime Error R6034 Patch (esri.com)

posted @ 2017-04-05 23:03  我也是个傻瓜  阅读(2180)  评论(1编辑  收藏  举报