Thread: Cannot run debug but can run release.

  1. #1
    In the Land of Diddly-Doo g4j31a5's Avatar
    Join Date
    Jul 2006
    Posts
    476

    Cannot run debug but can run release.

    Hi, I've copied a solution of a project from my coworker's computer to a freshly installed one. I've setted all the requirements such as the path to the include files and library files, the environment, etc and it can be build without error. When I run it though, it's not like that. I can actually run the release version of the application without any error, but not the debug. It said:

    The application failed to initialize properly (0xc0150002). Click on OK to terminate the application.
    I know that it's probably a missing dll issue but when I tried to look from dependency walker, the only one missing is MSJAVA.DLL which is not the issue because all the dlls that I've checked with dependency walker are also missing that dll.

    So I though it was a manifest issue and so I looked at the manifest and found that both the debug and release's manifest are like this:

    <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
    <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
    </assembly>
    There's no dependency at all which is peculiar. And then I checked my coworker's manifest and it said this:

    <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
    <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
    <dependency>
    <dependentAssembly>
    <assemblyIdentity type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50727.4053' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
    </dependentAssembly>
    </dependency>
    </assembly>
    Can anybody help me with this? This is rather confusing for me. Thanks in advance.
    ERROR: Brain not found. Please insert a new brain!

    “Do nothing which is of no use.” - Miyamoto Musashi.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    0xc0150002 - Google Search
    Did you check DLL versions in addition to searching just filenames?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    This is a MSVC side by side linking error. Check your event viewer for more information. You essentially do not have the same runtimes as your co-worker. The manifest refers to a folder in <windows_drive>/Windows/WinSXS that does not exist.

  4. #4
    In the Land of Diddly-Doo g4j31a5's Avatar
    Join Date
    Jul 2006
    Posts
    476
    Yeah, that's what I thought actually, SxS problem. Still trying to figure out why. I'm trying to download the patches that has the appropriate CRT. In fact maybe I'll try getting my hands on all version of the dlls and installed them all to all the PCs here. Manifest hell is such a pain in the @$$.

    Thanks.
    Last edited by g4j31a5; 11-16-2010 at 04:23 AM.
    ERROR: Brain not found. Please insert a new brain!

    “Do nothing which is of no use.” - Miyamoto Musashi.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Having only one function run at higher priority
    By ulillillia in forum C Programming
    Replies: 35
    Last Post: 02-24-2008, 06:56 PM
  2. difference between release and debug?
    By code2d in forum Tech Board
    Replies: 4
    Last Post: 05-01-2007, 08:05 PM
  3. Replies: 4
    Last Post: 09-16-2006, 07:11 PM
  4. Making standalone APP run in background
    By hart in forum Windows Programming
    Replies: 3
    Last Post: 02-27-2005, 11:20 AM
  5. Release VS Debug
    By axr0284 in forum Windows Programming
    Replies: 3
    Last Post: 01-28-2005, 10:53 AM