Symbian
Symbian OS Library

FAQ-0473 What causes panic LDR-IMPORT 2?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Errors & Error Handling
Created: 02/23/2000 Modified: 09/11/2002
Number: FAQ-0473
Platform: Not Applicable

Question:
My application dies with a panic LDR-IMPORT 2 - what does this mean?

Answer:
This panic is produced by this code from the fileserver:

    GLDEF_C void NonExistentImport()
    //
    // This function placed in the import address table
    // of executables that import a function ordinal that
    // does not exist in the pulled in dll.
    //
      {
      _LIT(KLDRIMPORT, "LDR-IMPORT");

      User::Panic(KLDRIMPORT, ELdrImportedOrdinalDoesNotExist);
      }
      What's happened here is that your app has called a function in some DLL which doesn't exist - this means that the LIB file you built against does not match the DLL used at runtime. This implies a break in binary compatibility, and the most likely explanation is building against a LIB file which has some new exported functions, then using an older version of the DLL.