CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2004
    Location
    A Planet Called Earth... :-)
    Posts
    835

    Attempt to initialize the CRT more than once....

    I have an application, when i run this, it reports the following error.

    Runtime Error

    R6034
    An application has made an attempt to load the C runtime library incorrectly.
    Quote Originally Posted by ErrorNum - R6034
    C Run-Time Error R6031


    Error Message

    Attempt to initialize the CRT more than once. This indicates a bug in your application.

    This diagnostic indicates that MSIL instructions were executing during loader lock. For more information, see Initialization of Mixed Assemblies.






    This is what I know about the history of the application, as of now.
    All was well, this was when the modules were built using VS 6.0.
    Now that, things have been ported to VS 8.0, this is what I came across.

    I am quite lost where to start looking?
    Settings ? but what ?
    Last edited by Vedam Shashank; July 31st, 2006 at 07:24 AM.
    C++ program ran... C++ program crashed... C++ programmer quit !!

    Regards

    Shaq

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Attempt to initialize the CRT more than once....

    Here are details on this problem,
    http://msdn2.microsoft.com/en-us/library/ms235560.aspx
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Sep 2004
    Location
    A Planet Called Earth... :-)
    Posts
    835

    Re: Attempt to initialize the CRT more than once....

    whoa..... that was quicker than quick... :-)
    thanks
    C++ program ran... C++ program crashed... C++ programmer quit !!

    Regards

    Shaq

  4. #4
    Join Date
    Sep 2004
    Location
    A Planet Called Earth... :-)
    Posts
    835

    Re: Attempt to initialize the CRT more than once....

    Quote Originally Posted by Krishnaa
    I looked into the project settings. A manifest is already being generated and embedded into the exe.
    C++ program ran... C++ program crashed... C++ programmer quit !!

    Regards

    Shaq

  5. #5
    Join Date
    Aug 2005
    Location
    Netherlands, The
    Posts
    2,184

    Re: Attempt to initialize the CRT more than once....

    try setting multithreading dll to multithreading

  6. #6
    Join Date
    Sep 2004
    Location
    A Planet Called Earth... :-)
    Posts
    835

    Re: Attempt to initialize the CRT more than once....

    Quote Originally Posted by Krishnaa
    I found the problem.
    but it seems strange to me..... maybe someone cud tell me what is goin on here.....

    The exe has a manifest embedded into it.... looks like the build some how manages to include the manifest file into the build and it is also available wherever the exe is located... when i delete the manifest file all works well. (I deleted it since manifest is already embedded)

    Cud someone let me know why this happened? why it fails when the manifest is also included

    Is there a way to find if the manifest is the "right manifest" for the exe ?
    Last edited by Vedam Shashank; August 1st, 2006 at 02:11 AM.
    C++ program ran... C++ program crashed... C++ programmer quit !!

    Regards

    Shaq

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured