Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC application crash possibily due to runtime version conflict of VC++ 2005 redistributable binaries

MFC application crash possibily due to runtime version conflict of VC++ 2005 redistributable binaries

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++questionannouncementdatabase
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ComplexLifeForm
    wrote on last edited by
    #1

    Hi, I am using VS2005 Professional edition (procured by my company) on Windows XP Pro SP2 to develop a MFC application. Currently I am facing two problems and I am unable to determine the reason for the same. The application is packaged using Install shield which also include VC++2005 redistributable binaries and installs it on the target machine if these are not located. On my machine I have two versions of VC++ 2005 runtime binaries (one for VC++2005 and other for VC++2005 SP1). Now on to the problem description 1. When I execute release version of my application on my machine and perform Print operation via Print Preview dialog box, the application crash. The stack trace shows a crash in the MFC library mfc80u.dll (8.0.50727.762). However when I execute my application on a fresh machine and performs the same application it works fine. My query is why is the application using MFC libraries from VC++2005 SP1. I have not installed VC++2005 SP1 on my machine and not sure which application installed them. I tried copying MFC and C Runtime libraries from VC++ 2005 redistributables package along with the required manifest files to the application binary folder but still the application is using MFC libraries from SP1 and crashes at the same location. If I perform print operation directly using Print Menu item, the application works properly under all conditions. So I doubt if there is a bug in my application or is the application crashing due to the fact it is not complied with VC++ 2005 SP1 but trying to use MFC libraries from SP1. Though I doubt that it is most probably the formal case but I am not sure. How do I ensure that I compile my application using the MFC and C runtime libraries from the original version and not from SP1? How do I uninstall VC++ 2005 SP1 MFC and C runtime libraries? 2. The same application also has mail sending capability which works fine on all versions of Windows except on Windows 2003 Server Enterprise edition with SP1. On Win2k3 Enterprise edition the application hangs when using mail functionality and I have to kill it using Task Manager. I doubt if it is something to do with WinSock libraries on Win2K3 but again I am not sure if it is due to a bug in my application. Kindly provide me some pointers which can help me in resolving these issues. Thanks and Regards.

    K 1 Reply Last reply
    0
    • C ComplexLifeForm

      Hi, I am using VS2005 Professional edition (procured by my company) on Windows XP Pro SP2 to develop a MFC application. Currently I am facing two problems and I am unable to determine the reason for the same. The application is packaged using Install shield which also include VC++2005 redistributable binaries and installs it on the target machine if these are not located. On my machine I have two versions of VC++ 2005 runtime binaries (one for VC++2005 and other for VC++2005 SP1). Now on to the problem description 1. When I execute release version of my application on my machine and perform Print operation via Print Preview dialog box, the application crash. The stack trace shows a crash in the MFC library mfc80u.dll (8.0.50727.762). However when I execute my application on a fresh machine and performs the same application it works fine. My query is why is the application using MFC libraries from VC++2005 SP1. I have not installed VC++2005 SP1 on my machine and not sure which application installed them. I tried copying MFC and C Runtime libraries from VC++ 2005 redistributables package along with the required manifest files to the application binary folder but still the application is using MFC libraries from SP1 and crashes at the same location. If I perform print operation directly using Print Menu item, the application works properly under all conditions. So I doubt if there is a bug in my application or is the application crashing due to the fact it is not complied with VC++ 2005 SP1 but trying to use MFC libraries from SP1. Though I doubt that it is most probably the formal case but I am not sure. How do I ensure that I compile my application using the MFC and C runtime libraries from the original version and not from SP1? How do I uninstall VC++ 2005 SP1 MFC and C runtime libraries? 2. The same application also has mail sending capability which works fine on all versions of Windows except on Windows 2003 Server Enterprise edition with SP1. On Win2k3 Enterprise edition the application hangs when using mail functionality and I have to kill it using Task Manager. I doubt if it is something to do with WinSock libraries on Win2K3 but again I am not sure if it is due to a bug in my application. Kindly provide me some pointers which can help me in resolving these issues. Thanks and Regards.

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      I have been facing that problem too. You should use the VC_redist.exe Setup for the VS2005 SP1 runtime. You find it on the MS-websites.

      Greetings from Germany

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups