locked
VC++ 6.0 ,Failed to load application. RRS feed

  • Question

  • I'm using Windows XP service pack 2 and building my application with VC++ 6.0.

    I failed to run the project, When it is built successfully. The error pop-up message is

     

    File: i386\chkesp.c

    Line:42

    The value of ESP was not properly saved across a function all. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

    After I clicked abort application the output window shows as follows :

    Loaded 'ntdll.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\MFC42D.DLL', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\MSVCRTD.DLL', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\comdlg32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\shlwapi.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\shell32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\winspool.drv', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\MFCO42D.DLL', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\oleaut32.dll', no matching symbolic information found.
    Loaded symbols for 'C:\WINDOWS\system32\MFCN42D.DLL'
    Loaded 'C:\WINDOWS\system32\wsock32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\ws2help.dll', no matching symbolic information found.
    Loaded symbols for 'C:\WINDOWS\system32\MSVCIRTD.DLL'
    Loaded 'C:\WINDOWS\system32\winmm.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\lpk.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\usp10.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\uxtheme.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\msimg32.dll', no matching symbolic information found.
    Loaded 'C:\WINDOWS\system32\msctfime.ime', no matching symbolic information found.
    Loaded 'C:\Program Files\Yahoo!\Messenger\idle.dll', no matching symbolic information found.
    Loaded 'C:\Program Files\Yahoo!\Messenger\msvcr71.dll', no matching symbolic information found.
    Detected memory leaks!
    Dumping objects ->
    strcore.cpp(118) : {80} normal block at 0x00332CE0, 20 bytes long.
     Data: <            Defa> 01 00 00 00 07 00 00 00 07 00 00 00 44 65 66 61
    strcore.cpp(118) : {79} normal block at 0x00335CA0, 48 bytes long.
     Data: <    #   #   C:\D> 01 00 00 00 23 00 00 00 23 00 00 00 43 3A 5C 44
    strcore.cpp(118) : {78} normal block at 0x00332C88, 16 bytes long.
     Data: <            BMP > 01 00 00 00 03 00 00 00 03 00 00 00 42 4D 50 00
    C:\WorkingFile\testcode\GloviaClient\c\menupool.cpp(41) : {76} normal block at 0x00334FD0, 3001 bytes long.
     Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    strcore.cpp(118) : {75} normal block at 0x00334F78, 15 bytes long.
     Data: <            >< > 01 00 00 00 02 00 00 00 02 00 00 00 3E 3C 00
    strcore.cpp(118) : {74} normal block at 0x00334F20, 14 bytes long.
     Data: <            Y > 01 00 00 00 01 00 00 00 01 00 00 00 59 00
    strcore.cpp(118) : {73} normal block at 0x00334EC8, 27 bytes long.
     Data: <            proi> 01 00 00 00 0E 00 00 00 0E 00 00 00 70 72 6F 69
    strcore.cpp(118) : {72} normal block at 0x00334E70, 17 bytes long.
     Data: <            none> 01 00 00 00 04 00 00 00 04 00 00 00 6E 6F 6E 65
    strcore.cpp(118) : {71} normal block at 0x00334E18, 24 bytes long.
     Data: <            bmp,> 01 00 00 00 0B 00 00 00 0B 00 00 00 62 6D 70 2C
    strcore.cpp(118) : {70} normal block at 0x00334DC0, 16 bytes long.
     Data: <            bmp > 01 00 00 00 03 00 00 00 03 00 00 00 62 6D 70 00
    strcore.cpp(118) : {69} normal block at 0x00334D68, 14 bytes long.
     Data: <            $ > 01 00 00 00 01 00 00 00 01 00 00 00 24 00
    strcore.cpp(118) : {68} normal block at 0x00334D10, 22 bytes long.
     Data: <            pass> 01 00 00 00 09 00 00 00 09 00 00 00 70 61 73 73
    strcore.cpp(118) : {67} normal block at 0x00334CB8, 19 bytes long.
     Data: <            logi> 01 00 00 00 06 00 00 00 06 00 00 00 6C 6F 67 69
    strcore.cpp(118) : {66} normal block at 0x00334C60, 22 bytes long.
     Data: <            PROI> 01 00 00 00 09 00 00 00 09 00 00 00 50 52 4F 49
    strcore.cpp(118) : {65} normal block at 0x00334C08, 20 bytes long.
     Data: <            BITM> 01 00 00 00 07 00 00 00 07 00 00 00 42 49 54 4D
    strcore.cpp(118) : {64} normal block at 0x00334BB0, 14 bytes long.
     Data: <            Y > 01 00 00 00 01 00 00 00 01 00 00 00 59 00
    strcore.cpp(118) : {63} normal block at 0x00334B58, 27 bytes long.
     Data: <            DefM> 01 00 00 00 0E 00 00 00 0E 00 00 00 44 65 66 4D
    Object dump complete.
    The thread 0xC00 has exited with code 3 (0x3).
    The program '<application name> 'has exited with code 3 (0x3).

    I could build and run this project on Windows 2000 professional and also on Windows XP (another machine).

    Thursday, June 29, 2006 10:30 AM

Answers

All replies

  • I think if the error message box contains the Retry button, then click on it in order to see in which place of your program the problem occurs. Use the View --> Debug Windows --> Call Stack window for investigations. Then show us the problematic code.

    Thursday, June 29, 2006 11:24 AM
  • The reason is that you overwrite some buffers on the stack. So maybe the retry will not help.
    Thursday, June 29, 2006 11:57 AM
  • No, those are memory leak reports for CStrings.  That's pretty normal when the program aborts without cleanup.  The diagnostic is probably generated from calling a __stdcall function as __cdecl or the other way around.  It should indeed be obvious which function that is when (s)he clicks the Retry button.  Look at the call stack.

    Thursday, June 29, 2006 3:31 PM
  • For VC6.0 issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups.

    I would highly encourage you to upgrade to VC2005 as the official support for VC6.0 already expired.

    Thanks,
    Ayman Shoukry
    VC++ Team
    Thursday, June 29, 2006 6:56 PM