Debug版DLL LoadLibrary R6034异常的原因及解决

Microsoft‘s recommendation is very confusing. That is, it recommends to include a manifest file and to re-compile the project.
  I recently had a problem with ‘R6034‘ error message even with a manifest file already included!
  In my case, Visual Studio 2005 compiles and builds a DEBUG-configuration of some DLL. But, as soon as I try to start an application that uses that DLL the loader can‘t load the DLL and displays an error message with error code ‘R6034‘.
  It happened because two Run-Time DLLs were referenced in my DLL by some reason! As soon as I looked inside of my DLL I found two strings: ‘msvcr80d.dll‘ and ‘msvcr80.dll‘, and the 2nd one is the reason of that run-time problem.
  In order to resolve the problem I added ‘msvcrt.lib‘ to the list of ignored libraries for DEBUG-configuration:
    [Configuration Properties] -> [Linker] -> [Input] -> ‘Ignore Specific Library‘ -msvcrt.lib

时间: 2024-08-25 00:00:45

Debug版DLL LoadLibrary R6034异常的原因及解决的相关文章

Struts2中使用execAndWait后,在 Action中调用getXXX()方法报告java.lang.NullPointerException异常的原因和解决方法

使用 Struts2 编写页面,遇到一个要长时间运行的接口,因此增加了一个execAndWait ,结果在 Action 中调用 getContext()的时候报告异常 1 ActionContext context = ActionContext.getContext(); 2 ServletContext servletContext = (ServletContext) context.get(ServletActionContext.SERVLET_CONTEXT); //抛空指针异常

ssm整合时出现 org.springframework.beans.factory.BeanCreationException :Error creating bean with name ‘XXX’ 异常的原因及解决方法

ssm整合时出现 org.springframework.beans.factory.BeanCreationException :Error creating bean with name 'XXX' 异常的原因及解决方法(只是可能出现下列几种,不包含全部) 此异常为:注入 bean 失败异常,也就是找不到注入的bean. 可能有以下几种原因: 1.bean未注解或者注解错误 2.项目整合的时候jar包冲突 3.'XXX'的配置有错误 解决:1,3仔细检查就是,网上大部分的人应该是2这种错误,

出现 java.net.ConnectException: Connection refused 异常的原因及解决方法

1 异常描述 在启动 Tomcat 服务器的时候,控制台一直输出异常信息,然后停止服务器,报出如下异常: 2 异常原因 通过观察上图中被标记出来的异常信息,咱们可以知道 java.net.ConnectException: Connection refused 此异常,为:连接被拒绝异常. 之前也在网上搜索过该异常出现的原因,大多数人给出的答案是端口号被占用,或者在启动本次 Tomcat 服务器之前"关闭"的 Tomcat 服务器没有被彻底关闭,因此才导致此异常的发生.也就是说,此异常

c#.net的网站出现“正在中止线程””异常的原因和解决方法

出现“正在中止线程”异常通常都是由于以下三种原因导致引起,给出解决方案如下: 解决方案: 1.针对Response.End,调用 HttpContext.Current.ApplicationInstance.completeRequest() 方法而不是 Response.End 以跳过 Application_EndRequest 事件的代码执行. 2.针对Response.Redirect,请使用重载 Response.Redirect(String url, bool endRespon

Java链接Redis时出现 “ERR Client sent AUTH, but no password is set” 异常的原因及解决办法

[错误提示] redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the poolat redis.clients.util.Pool.getResource(Pool.java:53)at redis.clients.jedis.JedisPool.getResource(JedisPool.java:226)at cn.hncu.RedisPool.getJedis(Re

getOutputStream() has already been called for this response异常的原因和解决方法

在使用tomcat6开发的过程中,由于要输出数据统计图,在后台每次生成图形到前台显示时,总是抛出异常,内容显示有: getOutputStream() has already been called for this response 在百度一搜一大把,可见很多人都遇到过类似的问题,解决办法也差不多,在前台使用完输出流以后调用以下两行代码即可: out.clear(); out = pageContext.pushBody(); 但是我们的工程是在后台使用getOutputStream(),因此

java.util.ConcurrentModificationException异常原因及解决方法

在java语言中,ArrayList是一个很常用的类,在编程中经常要对ArrayList进行删除操作,在使用remove方法对ArrayList进行删除操作时,报java.util.ConcurrentModificationException异常,下面探讨一下该异常的原因以及解决办法. 1 import java.util.ArrayList; 2 import java.util.List; 3 4 public class Test { 5 6 public static void mai

在Windows Qt-4.8.x平台上编译Qt-5.0+ WebKit(即qtwebkit-2.3.x) Debug版注意事项

在Windows Qt-4.8.x平台上编译Qt-5.0+ WebKit(即qtwebkit-2.3.x) Debug版注意事项 跳转至: 导航. 搜索 目录 1 C++编译问题 1.1 从idl生成.h/.cpp失败? 1.2 VS编译器版本 1.3 名字导出问题 1.4 找不到int64_t类型? 1.5 Windows上需要pthread-win32库以提供多线程支持 2 链接问题 2.1 mt.exe : general error c101008d: Failed to write t

惊讶,微软的所谓“安全的”文字列拷贝函数strcpy_s 居然非常粗暴(只在Debug版发生)

#include <stdio.h> #include <string.h> int main() { char buf[32]; int i; printf("before strcpy_s. buf: "); for (i=0; i < sizeof(buf); i++) {     buf[i] = '#';     printf("%c", buf[i]); } printf("\n"); strcpy_s(