Windows 7 - R6034 An application has made an attempt to load the C runtime lib

Asked By cleoh on 18-Feb-07 04:01 AM

I am currently working on a project created using VS2005 in the WinXP SP2
platform.  This project included various open source libraries such as
OpenSSL, Crypto++ and log4cpp.  There are no compilation errors but when I
run it, the following error occur:

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

I have also set the generate manifest option under the project settings to
yes and I am still encountering this problem.  Does anyone know how I can
resolve this?



Alex Blekhman replied on 18-Feb-07 04:21 AM
Probably this will help:

cleoh replied on 18-Feb-07 09:34 PM
Thanks for your reply.  I ran through a couple of articles including the one
you have posted.  Most of them indicate the following:

1) Set Generate Manifest option to Yes
- I already have this by default
2) Set Embed Manifest option to Yes else run MT.exe
- I already have the option set by default.  So am I right that I would not
be required to run MT.exe?
3) Installation of Visual C++ Redistributable Package
- I already have installed this.  However, do I need to recreate my project
after installing this?  Also, it seems that theres no prompt to indicate
completion of the installation.  Is it suppose to be like that?

I have done all the above and its still not working.  Can I check that the
manifest is only created for the project where I am using all the open source
libraries.  Do I still need to include manifest for the open source libraries
as well?
Alex Blekhman replied on 19-Feb-07 07:11 AM
Well, I never experienced R6034 error myself. I suggest to
open your executable with Depends utility (and run
profiling, if necessary). It can reveal DLL loading problems
and pinpoint offending DLL exactly. In theory, if EXE and
DLL both link to dynamic version of CRT, then the same CRT
library should be used by both components.

Also, if you can re-create you project from scratch by
adding new components one by one, it worth trying. Then
you'll get clear indication when projects stops working.

Sorry I couldn't give more specific advise.

cleoh replied on 19-Feb-07 09:00 AM
No problem, really appreciate your advice.  Currently, I am actually
performing the incremental development just as you have mentioned.  Problems
revealed...  It seems that I have problems with the open source libraries.
You mention about the Depends utility, can I know where I can download it and
is there any documentation on how to use it?
Alex Blekhman replied on 19-Feb-07 09:28 AM
Its full name is "Dependency Walker". Here is the site:

cleoh replied on 19-Feb-07 10:14 AM
Thanks for the info.  Will share with you once I manage to resolve the problem.
Dr Pizza replied on 21-Feb-07 06:55 PM
In the project properties, under Manifest Tool\Input and Output, ensure
that "embed manifest" is set to "yes".

cleoh replied on 21-Feb-07 07:46 PM
Thanks for your reply.  I have that set as default as well.