locked
Why my debug version application can't be run on another PC RRS feed

  • Question

  • hi all,

    i copy my debug version application to another PC, but i found it failed to launch. by the way, the release version is ok.

    the application is developed on VC2005.

    thanks!


    programmer on windows platform
    Tuesday, November 4, 2008 2:05 AM

Answers

  • That contains run time components needed to run programs created with VC 2005. There is also one for other versions of Visual Studio such as VS 2008.

    As you are using Visual Studio 2005, distribute that with your applications.

    I am a professional developer and a vegan. I also am a skilled web developer. I also study economics and play chess.
    Tuesday, November 4, 2008 2:40 AM
  • You can not legally redistribute the debug version of CRT and MFC
    MSMVP VC++
    • Marked as answer by jack 321 Friday, November 7, 2008 2:13 AM
    Tuesday, November 4, 2008 5:28 AM
  • Legally, you cannot run the debug version on a computer that does not have VS2005 installed. I'm not even sure there is a way to install the debug CRT libraries without installing Visual Studio.


    David Wilkinson | Visual C++ MVP
    • Marked as answer by jack 321 Friday, November 7, 2008 2:13 AM
    Tuesday, November 4, 2008 6:20 AM

All replies

  • Probably because you don't have the debug versions of the CRT libraries installed on the target machine.  You must deploy the Release build.
    Hans Passant.
    Tuesday, November 4, 2008 2:08 AM
  • do you mean mfc80ud.dll, msvcp80d.dll and msvcr80d.dll?

    i have copy them to the target machine.

    i have to debug my app on the target machine, so i have to run the debug build.
    programmer on windows platform
    Tuesday, November 4, 2008 2:17 AM
  • by the way, what is vc_2005_redist_x86.exe used for?
    programmer on windows platform
    Tuesday, November 4, 2008 2:37 AM
  • You can not legally redistribute the debug version of CRT and MFC
    MSMVP VC++
    • Marked as answer by jack 321 Friday, November 7, 2008 2:13 AM
    Tuesday, November 4, 2008 5:28 AM
  • Sheng Jiang 蒋晟 said:

    You can not legally redistribute the debug version of CRT and MFC




    but how can i let my debug version application run on a target machine?

    programmer on windows platform
    Tuesday, November 4, 2008 5:58 AM
  • Legally, you cannot run the debug version on a computer that does not have VS2005 installed. I'm not even sure there is a way to install the debug CRT libraries without installing Visual Studio.


    David Wilkinson | Visual C++ MVP
    • Marked as answer by jack 321 Friday, November 7, 2008 2:13 AM
    Tuesday, November 4, 2008 6:20 AM
  • I have searched for this kind of information for a long time. This is for Visual Studio 2010 "Determining Which DLLs to Redistribute": 

    "You cannot redistribute all of the files that are included in Visual Studio; you are only permitted to redistribute the files that are specified in Redist.txt. Debug versions of applications and the various Visual C++ DLLs are not redistributable." (http://msdn.microsoft.com/en-us/library/8kche8ah(v=vs.100).aspx)

    The problem is that there were no quoted Microsoft's sources for this kind of legal information. This question (asked often) was often answered with intro like IMHO, etc. Thus, you could decide whatever you like concerning software version redistribution.

    See for example "Why is a bad practice to distribute the Debug version of the application in .NET?:http://stackoverflow.com/questions/5101458/why-is-a-bad-practice-to-distribute-the-debug-version-of-the-application-in-net/10071712#10071712

    Monday, April 9, 2012 11:13 AM