解决C Runtime R6034的错误

本文介绍了一种解决R6034运行时错误的方法,该错误通常由第三方软件冲突引起。通过使用ProcessExplorer定位冲突的DLL文件,并在运行程序前清除PATH环境变量中的冲突路径,可以有效避免此类问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The problem was caused by third-party software that had added itself to the path and installed msvcr90.dll in its program folder. In this case, the problem was caused by Intel’s iCLS Client.

So… How to find the problem in similar situations?

Download Process Explorer here.
Start your application and reproduce runtime error R6034.
Start Process Explorer. In the “View” menu go to “Lower Pane View” and choose “DLLs”.
In the top pane, locate your application and click on it. The bottom pane should show a list of DLLS loaded for your application.
Locate “msvcr??.dll” in the list. There should be several. Look for the one that is not in the “winsxs” folder, and make a note of it.
Now, check the path just before your application runs. If it includes the folder you noted in step 5, you’ve probably found the culprit.
How to fix the problem? You’ll have to remove the offending entry from the path before running your program. In my case, I don’t need anything else in the path, so I wrote a simple batch file that looks like this:

path=
myprogram.exe
That’s it. The batch file simply clears the path before my program runs, so that the conflicting runtime DLL is not found.

Hope this helps!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值