Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > MSVC6 "This application has failed to start " python24_d.dll &c

Thread Tools

MSVC6 "This application has failed to start " python24_d.dll &c

Bill Davy
Posts: n/a
I am building a C++ program (main.exe) with VC6 which expects to call the
Python DLL. When I start it (under the debugger), I get: "This application
has failed to start because python24_d.dll was not found. Re-installing the
application may fix this problem."

I built Python24_d.dll using VS.NET 2003 (which I bought specifically for
that purpose but cannot use for our project, boo hoo).

I am building a debug version of main.exe which I linked with python24_d.lib
(which is in the same directory as python24_d.dll).

Under Settings | Debug | Additional DLL I have selected (using the IDE's
browse facility) E:\Bill\Python-2.4.1\PCbuild\python24_d.dll as a DLL to be
loaded at start up.

Py_Main is referenced in the main.exe I have built. Using "dumpbin /all
main.exe" the only reference to Python I can find is:


4A2C94 Import Address Table

4A268C Import Name Table

0 time date stamp

0 Index of first forwarder reference

2D3 Py_Main

"dumpbin /all python24_d.dll" runs well and shows Py_main is indeed at

How can I find out what is going wrong?

I cannot persuade the debugger to stop before the message is sent to trace
it (which might not be much fun anyway, but I've done it for Python before

Could the DLL be corrupt or inconsistent with the LIB file (perhaps because
it was built from C)?

Does it matter that in the Properties of Python24_d.dll it says the Original
File Name was python24.dll

Does it matter that my program (and MSVC6 etc) are in H: but the DLL is in

LoadLibrary() documentation says the OS searchs PATH (not LIBPATH, of
course). I have a PATH of "C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\Program Files\Microsoft SDK\Bin\.;C:\Program
Files\Microsoft SDK\Bin\WinNT\;E:\Bill\Python-2.4.1\PCbuild" (note the last



PS And the file really does exist:

E:\Bill\Python-2.4.1\PCbuild>dir E:\Bill\Python-2.4.1\PCbuild\python24*.*
Volume in drive E is Data
Volume Serial Number is 7864-C6B8

Directory of E:\Bill\Python-2.4.1\PCbuild

19/05/2005 15:00 2,568,192 python24_d.dll
19/05/2005 15:00 114,047 python24_d.exp
19/05/2005 15:00 189,890 python24_d.lib
19/05/2005 15:00 2,935,808 python24_d.pdb
4 File(s) 5,807,937 bytes
0 Dir(s) 21,821,677,568 bytes free


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: This application has failed to start because the applicationconfiguration is incorrect Mark Hammond Python 2 02-26-2009 12:35 AM
"The application has failed to start because the applicationconfiguration is incorrect" Carl Banks Python 2 01-28-2009 06:11 AM
spirit 1.6.0 stlport 4.6.2 msvc6 C++ 2 01-27-2005 05:23 PM
Forwrard References in MSVC6 vs. Borland 5.5 compilter tools. John C++ 3 04-04-2004 07:45 PM
template specialization hides other specializations-msvc6 Tom Richardson C++ 1 12-19-2003 05:05 PM