Thread: LDR Error

  1. #1
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246

    LDR Error

    I corrected the first error. Now it compiles and links but right after execution an error occurs:
    Code:
     LDR: LdrpWalkImportDescriptor() failed to probe C:\WINDOWS\system32\alleg42.dll for its manifest, ntstatus 0xc0150002
    I am tired of these errors. Next time I should only get C++ code. What the hell this error is?

    [EDIT] If it is portability, portability is a bull.........
    Last edited by siavoshkc; 09-12-2007 at 09:59 AM.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  2. #2
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    Sorry, it seems that was the good error. After forcing static linking:
    Code:
    1>fatal error C1900: Il mismatch between 'P1' version '20060201' and 'P2' version '20050411'
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  3. #3

  4. #4
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    Of course it is ridiculous. Another masterpiece from MS. Its a linker error. There is only one linker version. It works fine for other programs and even for this program when you don't define ALLEGRO_STATICLINK. But let it go, stick with DLL linking. It can't probe multimedia library DLL "Allegro" for its manifest. What does it mean? I downloaded MSVC8 version of library from sourceforge. They surely have tested it.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Have you tried re-installing Visual Studio? Someone on the MSDN forums had the exact same error and resolved it with a re-install.

    http://forums.microsoft.com/MSDN/Sho...12436&SiteID=1

    gg

  6. #6
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    I have read that. It is not a real version mismatch. It is a bug and error is generated because linker has an unknown problem when linking.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  7. #7
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    It seems the problem is because alleg42.dll is not in the manifest of my executable. So Side by side assembly execution fails.

    [edit] Its funny to have a look at the error log:
    Code:
    Event Type:	Error
    Event Source:	SideBySide
    
    Description:
    Generate Activation Context failed for c:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\ScanTool\release\ScanTool.exe. 
    Reference error message: The operation completed successfully.
    Last edited by siavoshkc; 09-16-2007 at 02:58 PM.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM